From 6253ef7138cc9bd6c4d452c768b49469831d34b4 Mon Sep 17 00:00:00 2001 From: thomasba Date: Thu, 19 Nov 2015 13:16:21 +0100 Subject: [PATCH] Call rbenv init directly --- zsh/rbenv | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/zsh/rbenv b/zsh/rbenv index f84028e..af3edb7 100644 --- a/zsh/rbenv +++ b/zsh/rbenv @@ -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 :