diff options
Diffstat (limited to 'rbenv/shrc.d/plenv.sh')
-rw-r--r-- | rbenv/shrc.d/plenv.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/rbenv/shrc.d/plenv.sh b/rbenv/shrc.d/plenv.sh new file mode 100644 index 00000000..ed9ddd03 --- /dev/null +++ b/rbenv/shrc.d/plenv.sh @@ -0,0 +1,21 @@ +# POSIX-compatible version of the rbenv Bash shell wrapper +[ -d "$HOME"/.rbenv ] || return +rbenv() { + case $1 in + rehash) + shift + eval "$(rbenv sh-rehash "$@")" + ;; + sh-rehash) + command rbenv "$@" + ;; + shell) + shift + eval "$(rbenv sh-shell "$@")" + ;; + *) + command rbenv "$@" + rbenv rehash + ;; + esac +} |