diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-09-29 00:27:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-29 00:27:59 +0300 |
commit | 748f9868fcf275a12359d23433191118ff690489 (patch) | |
tree | df4b822718985e25ff9697a88ffc2cb0028e8793 /powerlevel9k.zsh-theme | |
parent | 095351cfe105acb48c1cd6874f4115bc50aaacbb (diff) |
Final cleanup for new POWERLEVEL9K_RBENV_ALWAYS flag
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index dc2af025..d7d99c3f 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -1041,20 +1041,16 @@ prompt_ram() { } # rbenv information +set_default POWERLEVEL9K_RBENV_ALWAYS false 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. - # Unless POWERLEVEL_RBENV_ALWAYS is set. - set_default POWERLEVEL9K_RBENV_ALWAYS false + # Don't show anything if the current Ruby is the same as the global Ruby + # unless `POWERLEVEL9K_RBENV_ALWAYS` is set. if [[ $POWERLEVEL9K_RBENV_ALWAYS == true || $rbenv_version_name != $rbenv_global ]];then "$1_prompt_segment" "$0" "$2" "red" "$DEFAULT_COLOR" "$rbenv_version_name" 'RUBY_ICON' - #elif [[ $rbenv_version_name != $rbenv_global ]]; then - # "$1_prompt_segment" "$0" "$2" "red" "$DEFAULT_COLOR" "$rbenv_version_name" 'RUBY_ICON' - #else - # return fi fi } |