theme-chooser should warn in env variable /Users/simon/.oh-my-zsh is not set

This commit is contained in:
SimonGreenhill 2012-02-24 10:46:33 +13:00
commit 5ff8e09f6b

View file

@ -9,6 +9,12 @@
THEMES_DIR="$ZSH/themes"
FAVLIST="${HOME}/.zsh_favlist"
if [ -z "$ZSH" ]; then
echo "You probably need to set the environment value $ZSH, e.g. 'export ZSH; $0'"
exit
fi
source $ZSH/oh-my-zsh.sh
function noyes() {