Move direnv and chruby hooks into zshrc

Alpha Chen 9 years ago committed by Alpha Chen
parent 1e00e2fe70
commit 367315ca08
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -9,15 +9,3 @@
if [[ ( "$SHLVL" -eq 1 && ! -o LOGIN ) && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
source "${ZDOTDIR:-$HOME}/.zprofile"
fi
if command -v brew &> /dev/null; then
if [[ -s `brew --prefix`/share/chruby/chruby.sh ]]; then
source `brew --prefix`/share/chruby/chruby.sh
source `brew --prefix`/share/chruby/auto.sh
chruby ruby
fi
fi
if command -v direnv &> /dev/null; then
eval "$(direnv hook zsh)"
fi

@ -26,4 +26,16 @@ alias plz='sudo'
function eject { command hdiutil eject `df | grep Volumes | grep -i "$@" | ruby -ne 'puts $_[/^[^ ]*/]'`; }
if command -v brew &> /dev/null; then
if [[ -s `brew --prefix`/share/chruby/chruby.sh ]]; then
source `brew --prefix`/share/chruby/chruby.sh
source `brew --prefix`/share/chruby/auto.sh
chruby ruby
fi
fi
if command -v direnv &> /dev/null; then
eval "$(direnv hook zsh)"
fi
[[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local"

Loading…
Cancel
Save