mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-20 22:31:57 +00:00
Fix rbenv
segment after merge
This commit is contained in:
parent
dc21b97335
commit
51b53cd4b5
1 changed files with 2 additions and 1 deletions
|
@ -1262,12 +1262,13 @@ prompt_rbenv() {
|
||||||
local rbenv_version_name="$(rbenv version-name)"
|
local rbenv_version_name="$(rbenv version-name)"
|
||||||
local rbenv_global="$(rbenv global)"
|
local rbenv_global="$(rbenv global)"
|
||||||
|
|
||||||
|
|
||||||
# Don't show anything if the current Ruby is the same as the global Ruby
|
# Don't show anything if the current Ruby is the same as the global Ruby
|
||||||
# unless `POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW` is set.
|
# unless `POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW` is set.
|
||||||
if [[ $rbenv_version_name == $rbenv_global && "$POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW" = false ]]; then
|
if [[ $rbenv_version_name == $rbenv_global && "$POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW" = false ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
"$1_prompt_segment" "$0" "$2" "red" "$DEFAULT_COLOR" "$rbenv_version_name" 'RUBY_ICON'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue