dotfiles/tag-zsh/zshrc

45 lines
1 KiB
Bash
Raw Normal View History

2016-10-05 06:20:23 +00:00
# If you come from bash you might have to change your $PATH.
2019-03-22 14:35:32 +00:00
export PATH=$PATH:bin
2019-09-04 21:28:07 +00:00
export PATH=$PATH:node_modules/.bin
2019-03-22 14:35:32 +00:00
export PATH=$PATH:vendor/bin
2019-09-04 21:28:07 +00:00
export PATH=$PATH:$HOME/.composer/vendor/bin
export PATH=$PATH:/usr/local/sbin
2019-03-22 14:35:32 +00:00
export PATH=$PATH:"$HOME/.platformsh/bin"
2019-10-11 19:16:10 +00:00
export PATH="$HOME/.bin:$PATH"
2016-10-05 06:20:23 +00:00
# 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"
2020-01-15 08:25:21 +00:00
2020-01-21 07:21:30 +00:00
ensure_tmux_is_running
2019-10-06 00:36:38 +00:00
# Local config
[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local