Be a bit faster loading rbenv/nodenv
This commit is contained in:
parent
0f3bd4652a
commit
b22a99292e
1 changed files with 5 additions and 3 deletions
8
zshrc
8
zshrc
|
@ -28,13 +28,15 @@ zle -N insert-sudo
|
|||
bindkey "^z" insert-sudo
|
||||
|
||||
# init rbenv
|
||||
if test -d "$HOME/.rbenv"; then
|
||||
eval "$(rbenv init -)"
|
||||
if which rbenv > /dev/null; then
|
||||
eval "$(rbenv init --no-rehash -)"
|
||||
(rbenv rehash &) 2> /dev/null
|
||||
fi
|
||||
|
||||
# init nodenv
|
||||
if which nodenv > /dev/null; then
|
||||
eval "$(nodenv init -)";
|
||||
eval "$(nodenv init --no-rehash -)"
|
||||
(nodenv rehash &) 2> /dev/null
|
||||
fi
|
||||
|
||||
# completion
|
||||
|
|
Loading…
Reference in a new issue