diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2015-09-04 01:19:37 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2015-09-04 01:19:37 +0300 |
commit | 227958cb04d6cbe45df50fa5c079efd7737de73a (patch) | |
tree | c66d854c053c6d29cdf2ea57653af3e1aa95e906 | |
parent | ae77fc17d84255aa134bf882959aa4b32eaf5913 (diff) | |
parent | 60d92135cc4de88c0acaf56f026f07f94ad2811f (diff) |
Merge remote-tracking branch 'ben/master' into dritter/system_stats
-rw-r--r-- | powerlevel9k.zsh-theme | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index c0819d74..b1f9f013 100644 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -310,8 +310,8 @@ zstyle ':vcs_info:*' enable git hg zstyle ':vcs_info:*' check-for-changes true VCS_DEFAULT_FORMAT="$VCS_CHANGESET_PREFIX%F{$VCS_FOREGROUND_COLOR}%b%c%u%m%f" -zstyle ':vcs_info:git:*' formats "%F{$VCS_FOREGROUND_COLOR}$(print_icon 'VCS_GIT_ICON')%f$VCS_DEFAULT_FORMAT" -zstyle ':vcs_info:hg:*' formats "%F{$VCS_FOREGROUND_COLOR}$(print_icon 'VCS_HG_ICON')%f$VCS_DEFAULT_FORMAT" +zstyle ':vcs_info:git*:*' formats "%F{$VCS_FOREGROUND_COLOR}$(print_icon 'VCS_GIT_ICON')%f$VCS_DEFAULT_FORMAT" +zstyle ':vcs_info:hg*:*' formats "%F{$VCS_FOREGROUND_COLOR}$(print_icon 'VCS_HG_ICON')%f$VCS_DEFAULT_FORMAT" zstyle ':vcs_info:*' actionformats " %b %F{red}| %a%f" @@ -772,6 +772,8 @@ prompt_virtualenv() { # Main prompt build_left_prompt() { + RETVAL=$? + if [[ "${#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS}" == 0 ]]; then POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir rbenv vcs) fi |