Revert "Lazy load our shim loaders"

This reverts commit 982439c2b2.
This commit is contained in:
Andrew Tomaka 2017-01-03 17:25:46 -05:00
parent dd2b5b54cd
commit 2b50656cda
2 changed files with 10 additions and 17 deletions

View file

@ -55,20 +55,3 @@ function run {
function npm-exec {
(PATH=$(npm bin):$PATH; eval $@;)
}
# lazy loading
function rbenv {
eval "$(command rbenv init -)"
rbenv "$@"
}
function nodeenv {
eval "$(command nodenv init -)"
nodenv "$@"
}
function pyenv {
eval "$(command pyenv init -)"
eval "$(command pyenv virtualenv-init -)"
pyenv "$@"
}

10
zshrc
View file

@ -27,6 +27,16 @@ fi
zle -N insert-sudo
bindkey "^z" insert-sudo
# init rbenv
if test -d "$HOME/.rbenv"; then
eval "$(rbenv init -)"
fi
# init nodenv
if which nodenv > /dev/null; then
eval "$(nodenv init -)";
fi
# completion
autoload -U compinit
compinit