diff --git a/zsh/10-exports.zsh b/zsh/10-exports.zsh index aca593f..4ba51f1 100644 --- a/zsh/10-exports.zsh +++ b/zsh/10-exports.zsh @@ -2,9 +2,11 @@ for config_file in `ls ${CONFIG_PATH}/zsh/exports | sort`; do source ${CONFIG_PATH}/zsh/exports/${config_file} done -for config_file in `ls ${HOME}/.zsh-config.d/exports | sort`; do - if [ -f ${HOME}/.zsh-config.d/exports/${config_file} ]; then - source ${HOME}/.zsh-config.d/exports/${config_file} - fi -done +if [ -d ${HOME}/.zsh-config.d/exports ]; then + for config_file in `ls ${HOME}/.zsh-config.d/exports | sort`; do + if [ -f ${HOME}/.zsh-config.d/exports/${config_file} ]; then + source ${HOME}/.zsh-config.d/exports/${config_file} + fi + done +fi