diff --git a/libexec/rbenv-init b/libexec/rbenv-init index 29f521f3..88f9e69c 100755 --- a/libexec/rbenv-init +++ b/libexec/rbenv-init @@ -34,7 +34,11 @@ root="${0%/*}/.." if [ -z "$print" ]; then case "$shell" in bash ) - profile='~/.bash_profile' + if [ -f "${HOME}/.bashrc" ] && [ ! -f "${HOME}/.bash_profile" ]; then + profile='~/.bashrc' + else + profile='~/.bash_profile' + fi ;; zsh ) profile='~/.zshrc'