Skip to content

Commit

Permalink
lib/theme: use _command_exists() in rbenv_version_prompt()
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelicWizard committed Mar 4, 2022
1 parent 7762aa6 commit df87b41
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 @@ -413,7 +413,7 @@ function rvm_version_prompt() {
}

function rbenv_version_prompt() {
if which rbenv &> /dev/null; then
if _command_exists rbenv; then
rbenv=$(rbenv version-name) || return
rbenv commands | grep -q gemset && gemset=$(rbenv gemset active 2> /dev/null) && rbenv="$rbenv@${gemset%% *}"
if [[ "$rbenv" != "system" ]]; then
Expand Down

0 comments on commit df87b41

Please sign in to comment.