diff --git a/libexec/rbenv-init b/libexec/rbenv-init index 43e1339..9569e93 100755 --- a/libexec/rbenv-init +++ b/libexec/rbenv-init @@ -50,6 +50,9 @@ if [ -z "$print" ]; then exit 1 fi +mkdir -p "${HOME}/.rbenv/{shims,versions}" +[ -e "${HOME}/.rbenv/default" ] || echo system > "${HOME}/.rbenv/default" + echo 'export PATH="${HOME}/.rbenv/shims:${PATH}"' if [ "$shell" = "bash" ]; then