This should fix problems with sourcing things from home directory and warnings, that appear on FreeBSD.

This commit is contained in:
Stanislav Nikitin 2015-03-21 16:32:25 +05:00
parent 3c9ea5f437
commit 5bdc4ece37
2 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,8 @@ for config_file in `ls ${CONFIG_PATH}/zsh/exports | sort`; do
done
for config_file in `ls ${HOME}/.zsh-config.d/exports | sort`; do
source ${HOME}/.zsh-config.d/exports/${config_file}
if [ -f ${HOME}/.zsh-config.d/exports/${config_file} ]; then
source ${HOME}/.zsh-config.d/exports/${config_file}
fi
done

View File

@ -13,6 +13,8 @@ done
if [ -d "${HOME}/.zsh-config.d/aliases" ]; then
for item in `ls ${HOME}/.zsh-config.d/aliases`; do
source ${HOME}/.zsh-config.d/aliases/${item}
if [ -f ${HOME}/.zsh-config.d/aliases/${item} ]; then
source ${HOME}/.zsh-config.d/aliases/${item}
fi
done
fi