* test if 'custom' exists before we try to read from it

* this is to avoid an error message when we enter zsh ;)
This commit is contained in:
till 2010-10-03 23:38:02 +02:00
commit d631d8ab5a

View file

@ -8,7 +8,9 @@ fpath=($ZSH/functions $fpath)
for config_file ($ZSH/lib/*.zsh) source $config_file
# Load all of your custom configurations from custom/
for config_file ($ZSH/custom/*.zsh) source $config_file
if [ -d "$ZSH/custom" ]; then
for config_file ($ZSH/custom/*.zsh) source $config_file
fi
# Load all of the plugins that were defined in ~/.zshrc
plugin=${plugin:=()}
@ -22,4 +24,4 @@ else
/usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
fi
unset config_file
unset config_file