aboutsummaryrefslogblamecommitdiff
path: root/rbenv/shrc.d/plenv.sh
blob: ed9ddd037b2c7785cbe5860490928d478008d3fe (plain) (tree)




















                                                          
# 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
}