Skip to content

Commit

Permalink
Merge pull request Bash-it#1789 from BarbUk/fix/rbenv_version_prompt
Browse files Browse the repository at this point in the history
Fix rbenv version prompt
  • Loading branch information
Noah Gorny authored Jan 16, 2021
2 parents 18781ed + 814ff56 commit 79df5ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/base.theme.bash
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ function rvm_version_prompt {
function rbenv_version_prompt {
if which rbenv &> /dev/null; then
rbenv=$(rbenv version-name) || return
$rbenv commands | grep -q gemset && gemset=$(rbenv gemset active 2> /dev/null) && rbenv="$rbenv@${gemset%% *}"
rbenv commands | grep -q gemset && gemset=$(rbenv gemset active 2> /dev/null) && rbenv="$rbenv@${gemset%% *}"
if [ "$rbenv" != "system" ]; then
echo -e "$RBENV_THEME_PROMPT_PREFIX$rbenv$RBENV_THEME_PROMPT_SUFFIX"
fi
Expand Down

0 comments on commit 79df5ff

Please sign in to comment.