Show rbenv active ruby rather than system ruby

This commit is contained in:
Daniel Leavitt
2012-04-24 23:08:40 -07:00
parent 6044d3abbe
commit 5659a73445

View File

@@ -121,7 +121,7 @@ function rvm_version_prompt {
function rbenv_version_prompt {
if which rbenv &> /dev/null; then
rbenv=$(rbenv global) || return
rbenv=$(rbenv version-name) || return
echo -e "$RBENV_THEME_PROMPT_PREFIX$rbenv$RBENV_THEME_PROMPT_SUFFIX"
fi
}