Fix exports loading.

This commit is contained in:
Stanislav Nikitin 2015-03-23 21:31:19 +05:00
parent 9eb7e2a012
commit 1c2ab0d8dd

View File

@ -6,7 +6,7 @@ done
# We should import user-specific exports and use them.
if [ -d ${HOME}/.zsh-config.d/exports ]; then
for config_file in `find ${HOME}/.zsh-config.d/exports -type f -exec basename {} \; | sort`; do
if [ -f ${config_file} ]; then
if [ -f "${HOME}/.zsh-config.d/exports/${config_file}" ]; then
source "${HOME}/.zsh-config.d/exports/${config_file}"
fi
done