diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2018-06-09 15:37:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-09 15:37:56 +0300 |
commit | 51b53cd4b5e715ae148ba588ea573491cdcc17c5 (patch) | |
tree | bc5fa25b432e4ece2f2d844d0bf8ec752c57d43e /powerlevel9k.zsh-theme | |
parent | dc21b973350a1ebc0a6ff1699e2d8439a9f8820c (diff) |
Fix `rbenv` segment after merge
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 59178708..730cff49 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -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 } |