Moar fixes to sourcerers.

DEBUG variable force in config loader. If variable isn't defined - force it to be 0.
This commit is contained in:
2015-03-21 20:30:55 +05:00
parent 1babd0fb06
commit 9eb7e2a012
5 changed files with 21 additions and 15 deletions
+4 -4
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_file}
for config_file in `find ${CONFIG_PATH}/zsh/exports -type f -exec basename {} \; | sort`; do
source "${CONFIG_PATH}/zsh/exports/${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
for config_file in `find ${HOME}/.zsh-config.d/exports -type f -exec basename {} \; | sort`; do
if [ -f ${config_file} ]; then
source ${config_file}
source "${HOME}/.zsh-config.d/exports/${config_file}"
fi
done
fi