zsh-config/zsh/01-config.zsh
pztrn 9eb7e2a012 Moar fixes to sourcerers.
DEBUG variable force in config loader. If variable isn't defined - force it to be 0.
2015-03-21 20:30:55 +05:00

10 lines
385 B
Bash

# Configuration file loader.
if [ ! -d ${HOME}/.zsh-config.d/ ]; then
cp -R "${CONFIG_PATH}/zsh/defaults/" ${HOME}/.zsh-config.d
echo "Looks like it's a very first launch. So I've copied default config to '${HOME}/.zsh-config.d/'"
fi
for file in `find ${HOME}/.zsh-config.d/ -maxdepth 1 -type f -exec basename {} \; | sort`; do
source "${HOME}/.zsh-config.d/${file}"
done