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
|
bindkey "^z" insert-sudo
|
||||||
|
|
||||||
# init rbenv
|
# init rbenv
|
||||||
if test -d "$HOME/.rbenv"; then
|
if which rbenv > /dev/null; then
|
||||||
eval "$(rbenv init -)"
|
eval "$(rbenv init --no-rehash -)"
|
||||||
|
(rbenv rehash &) 2> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# init nodenv
|
# init nodenv
|
||||||
if which nodenv > /dev/null; then
|
if which nodenv > /dev/null; then
|
||||||
eval "$(nodenv init -)";
|
eval "$(nodenv init --no-rehash -)"
|
||||||
|
(nodenv rehash &) 2> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# completion
|
# completion
|
||||||
|
|
Loading…
Add table
Reference in a new issue