zsh-config/zsh/10-exports.zsh

15 lines
588 B
Bash
Raw Normal View History

2015-03-21 19:52:26 +05:00
# Some default exports. They could be based on configuration variables.
for config_file in `find ${CONFIG_PATH}/zsh/exports -type f -exec basename {} \; | sort`; do
source "${CONFIG_PATH}/zsh/exports/${config_file}"
2015-03-14 20:39:49 +05:00
done
2015-03-21 19:52:26 +05:00
# 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
2015-03-23 21:31:19 +05:00
if [ -f "${HOME}/.zsh-config.d/exports/${config_file}" ]; then
source "${HOME}/.zsh-config.d/exports/${config_file}"
fi
done
fi
2015-03-14 20:39:49 +05:00