From 2b50656cda9fd01af70d9bd798f60c51f498dc41 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 3 Jan 2017 17:25:46 -0500 Subject: [PATCH] Revert "Lazy load our shim loaders" This reverts commit 982439c2b2453eec665b1fb30f78abfe2cb42650. --- functions | 17 ----------------- zshrc | 10 ++++++++++ 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/functions b/functions index 586dfc7..7175021 100644 --- a/functions +++ b/functions @@ -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 "$@" -} diff --git a/zshrc b/zshrc index f41015d..c8896d6 100644 --- a/zshrc +++ b/zshrc @@ -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