Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.

Commit 76c0683

Browse files
committed
prompt_rbenv uses the FAIL_ICON instead of parens to designate missing ruby ver
1 parent fa0a027 commit 76c0683

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

powerlevel9k.zsh-theme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ prompt_rbenv() {
12761276
if [[ -n "$RBENV_VERSION" ]]; then
12771277
"$1_prompt_segment" "$0" "$2" "red" "$DEFAULT_COLOR" "$RBENV_VERSION" 'RUBY_ICON'
12781278
elif [ $commands[rbenv] ]; then
1279-
local rbenv_version_name="$(rbenv version-name 2>/dev/null || echo "($(rbenv local 2>/dev/null))")"
1279+
local rbenv_version_name="$(rbenv version-name 2>/dev/null || echo "$(print_icon FAIL_ICON) $(rbenv local 2>/dev/null)")"
12801280
local rbenv_global="$(rbenv global)"
12811281
if [[ "${rbenv_version_name}" != "${rbenv_global}" || "${POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW}" == "true" ]]; then
12821282
"$1_prompt_segment" "$0" "$2" "red" "$DEFAULT_COLOR" "$rbenv_version_name" 'RUBY_ICON'

0 commit comments

Comments
 (0)