Source ~/.zshrc.local if it exists

Follows the pattern of:

* ~/.aliases.local in ce7ad49
* ~/.gitconfig.local in 8e141fe
* ~/.vimrc.local in a666267

Use consistent:

* `source`ing style.
* commenting style.

I am using ~/.zshrc.local as a home for `eval "$(rbenv init -)"`.
This commit is contained in:
Dan Croak 2013-07-07 15:55:41 -07:00
parent ce7ad494cf
commit e69f7b7995

11
zshrc
View file

@ -16,11 +16,6 @@ setopt auto_cd
export VISUAL=vim
export EDITOR=$VISUAL
# aliases
if [ -e "$HOME/.aliases" ]; then
source "$HOME/.aliases"
fi
# vi mode
bindkey -v
bindkey "^F" vi-cmd-mode
@ -68,3 +63,9 @@ setopt CORRECT CORRECT_ALL
# Enable extended globbing
setopt EXTENDED_GLOB
# aliases
[[ -f ~/.aliases ]] && source ~/.aliases
# Local config
[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local