Conflicts:
	.gitignore
	lib/completion.zsh
	lib/git.zsh
	oh-my-zsh.sh
This commit is contained in:
Sorin Ionescu 2011-04-30 16:57:47 -04:00
commit 969553349f
23 changed files with 931 additions and 29 deletions

View file

@ -28,7 +28,18 @@ for plugin ($plugins); do
done
# Load the theme
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
# Check for updates on initial load...
if [ "$ZSH_THEME" = "random" ]
then
themes=($ZSH/themes/*zsh-theme)
N=${#themes[@]}
((N=RANDOM%N))
RANDOM_THEME=${themes[$N]}
source "$RANDOM_THEME"
echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."
else
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
fi
# Load all of your custom configurations from custom/
for config_file ($ZSH/custom/*.zsh) source $config_file