You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.
In powerlevel9k.zsh-theme the rbenv_prompt is set to only show the ruby version if it is different from the global version set.
For people like me who want to always see the ruby version segment in the prompt, could the conditional be removed or at least an option (eg via an environment variable) to keep it always showing?
===>
local rbenv_global="$(rbenv global)"
#Don't show anything if the current Ruby is the same as the global Ruby.
if [[ $rbenv_version_name == $rbenv_global ]]; then
return
fi
=== From the function ===>
rbenv information
prompt_rbenv() {
if which rbenv 2>/dev/null >&2; then
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.
if [[ $rbenv_version_name == $rbenv_global ]]; then
return
fi
"$1_prompt_segment" "$0" "$2" "red" "$DEFAULT_COLOR" "$rbenv_version_name" 'RUBY_ICON'
fi
}
The text was updated successfully, but these errors were encountered:
In powerlevel9k.zsh-theme the rbenv_prompt is set to only show the ruby version if it is different from the global version set.
For people like me who want to always see the ruby version segment in the prompt, could the conditional be removed or at least an option (eg via an environment variable) to keep it always showing?
===>
local rbenv_global="$(rbenv global)"
=== From the function ===>
rbenv information
prompt_rbenv() {
if which rbenv 2>/dev/null >&2; then
local rbenv_version_name="$(rbenv version-name)"
local rbenv_global="$(rbenv global)"
fi
}
The text was updated successfully, but these errors were encountered: