Fix rbenv segment after merge

This commit is contained in:
Dominik Ritter 2018-06-09 14:37:56 +02:00 committed by GitHub
parent dc21b97335
commit 51b53cd4b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1262,12 +1262,13 @@ prompt_rbenv() {
local rbenv_version_name="$(rbenv version-name)"
local rbenv_global="$(rbenv global)"
# Don't show anything if the current Ruby is the same as the global Ruby
# unless `POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW` is set.
if [[ $rbenv_version_name == $rbenv_global && "$POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW" = false ]]; then
return
fi
"$1_prompt_segment" "$0" "$2" "red" "$DEFAULT_COLOR" "$rbenv_version_name" 'RUBY_ICON'
fi
}