Skip to content
Browse files

themes plugin now picks a random theme if no argument is provided.

  • Loading branch information...
1 parent 90c28b7 commit f731d6c16fd49e8140250a90e91d01f49d13da17 @kevinxucs kevinxucs committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/themes/themes.plugin.zsh
View
2 plugins/themes/themes.plugin.zsh
@@ -1,6 +1,6 @@
function theme
{
- if [ "$1" = "random" ]; then
+ if [ -z "$1" ] || [ "$1" = "random" ]; then
themes=($ZSH/themes/*zsh-theme)
N=${#themes[@]}
((N=(RANDOM%N)+1))

0 comments on commit f731d6c

Please sign in to comment.
Something went wrong with that request. Please try again.