1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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 }