Browse Source

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

Kaiwen Xu 11 years ago
parent
commit
f731d6c16f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/themes/themes.plugin.zsh

+ 1 - 1
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))