diff --git a/libexec/rbenv-init b/libexec/rbenv-init index cd327fad..acc9e40d 100755 --- a/libexec/rbenv-init +++ b/libexec/rbenv-init @@ -38,6 +38,7 @@ if [ -z "$shell" ]; then shell="${shell##-}" shell="${shell:-$SHELL}" shell="${shell##*/}" + shell="${shell%%-*}" fi root="${0%/*}/.."