Browse code

Merge pull request #355 from watsoncj/master^1

Fix to Random Theme Selection

Robby Russell authored on 25/05/2011 at 19:52:43
Showing 1 changed files
... ...
@@ -31,7 +31,7 @@ if [ "$ZSH_THEME" = "random" ]
31 31
 then
32 32
   themes=($ZSH/themes/*zsh-theme)
33 33
   N=${#themes[@]}
34
-  ((N=RANDOM%N))
34
+  ((N=(RANDOM%N)+1))
35 35
   RANDOM_THEME=${themes[$N]}
36 36
   source "$RANDOM_THEME"
37 37
   echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."