Call rbenv init directly

main
Thomas Ba. 10 years ago
parent 017d9a6df9
commit 6253ef7138

@ -1,19 +1,4 @@
export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/plugins/ruby-build/bin:$HOME/.rbenv/bin:${PATH}"
export RBENV_SHELL=zsh
source "$HOME/.rbenv/completions/rbenv.zsh"
rbenv rehash 2>/dev/null
rbenv() {
local command
command="$1"
if [ "$#" -gt 0 ]; then
shift
fi
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
case "$command" in
rehash|shell)
eval "`rbenv "sh-$command" "$@"`";;
*)
command rbenv "$command" "$@";;
esac
}
# vim: ft=zsh :

Loading…
Cancel
Save