45 lines
1 KiB
Bash
45 lines
1 KiB
Bash
# If you come from bash you might have to change your $PATH.
|
|
export PATH=$PATH:bin
|
|
export PATH=$PATH:node_modules/.bin
|
|
export PATH=$PATH:vendor/bin
|
|
export PATH=$PATH:$HOME/.composer/vendor/bin
|
|
export PATH=$PATH:/usr/local/sbin
|
|
export PATH=$PATH:"$HOME/.platformsh/bin"
|
|
export PATH="$HOME/.bin:$PATH"
|
|
|
|
# extra files in ~/.zsh/configs/pre , ~/.zsh/configs , and ~/.zsh/configs/post
|
|
# these are loaded first, second, and third, respectively.
|
|
_load_settings() {
|
|
_dir="$1"
|
|
if [ -d "$_dir" ]; then
|
|
if [ -d "$_dir/pre" ]; then
|
|
for config in "$_dir"/pre/**/*~*.zwc(N-.); do
|
|
. $config
|
|
done
|
|
fi
|
|
|
|
for config in "$_dir"/**/*(N-.); do
|
|
case "$config" in
|
|
"$_dir"/(pre|post)/*|*.zwc)
|
|
:
|
|
;;
|
|
*)
|
|
. $config
|
|
;;
|
|
esac
|
|
done
|
|
|
|
if [ -d "$_dir/post" ]; then
|
|
for config in "$_dir"/post/**/*~*.zwc(N-.); do
|
|
. $config
|
|
done
|
|
fi
|
|
fi
|
|
}
|
|
_load_settings "$HOME/.zsh/configs"
|
|
|
|
ensure_tmux_is_running
|
|
|
|
# Local config
|
|
[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local
|