More fixes to importing stuff - find will return full file paths.

This commit is contained in:
2015-03-21 19:53:54 +05:00
parent eca7e5500a
commit 1babd0fb06
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -1,13 +1,13 @@
# Some default exports. They could be based on configuration variables.
for config_file in `find ${CONFIG_PATH}/zsh/exports -type f | sort`; do
source ${CONFIG_PATH}/zsh/exports/${config_file}
source ${config_file}
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 | sort`; do
if [ -f ${HOME}/.zsh-config.d/exports/${config_file} ]; then
source ${HOME}/.zsh-config.d/exports/${config_file}
if [ -f ${config_file} ]; then
source ${config_file}
fi
done
fi