export random theme so we know what it was

This commit is contained in:
Iain Miller 2015-12-01 13:43:16 +00:00 committed by Iain Miller
commit d214bf34c1

View file

@ -99,7 +99,7 @@ if [[ "$ZSH_THEME" == "random" ]]; then
fi
N=${#themes[@]}
((N=(RANDOM%N)+1))
RANDOM_THEME=${themes[$N]}
export RANDOM_THEME=${themes[$N]}
source "$RANDOM_THEME"
echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."
else