From 814ff562e97181f0a846eb2f4b8597b2081f9e1c Mon Sep 17 00:00:00 2001 From: BarbUk Date: Sat, 16 Jan 2021 09:25:12 +0100 Subject: [PATCH] Fix rbenv version prompt --- themes/base.theme.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/base.theme.bash b/themes/base.theme.bash index c761391318..2e945ac672 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash @@ -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