diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2016-02-26 17:53:59 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2016-02-26 17:53:59 +0300 |
commit | b3fae488934fef856805a9012f08fb4146764aa6 (patch) | |
tree | 5448ff41748b48091ae1fd25df2916297f66eb06 /powerlevel9k.zsh-theme | |
parent | 5d31763a8eab213cdcf59d76283b34e75fd93d4d (diff) | |
parent | cb5d33affb4fb223ec29f6dfb89ff8b0bb6e9133 (diff) |
Merge pull request #220 from dritter/rename_vcs_default_state
Rename vcs default state
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 38651fe9..d573f6f9 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -764,11 +764,11 @@ prompt_vcs() { VCS_WORKDIR_DIRTY=false VCS_WORKDIR_HALF_DIRTY=false - # The vcs segment can have three different states - defaults to ''. + # The vcs segment can have three different states - defaults to 'clean'. local current_state="" typeset -AH vcs_states vcs_states=( - '' 'green' + 'clean' 'green' 'modified' 'red' 'untracked' 'yellow' ) @@ -824,7 +824,7 @@ prompt_vcs() { if [[ "$VCS_WORKDIR_HALF_DIRTY" == true ]]; then current_state='untracked' else - current_state='' + current_state='clean' fi fi "$1_prompt_segment" "${0}_${(U)current_state}" "$2" "${vcs_states[$current_state]}" "$DEFAULT_COLOR" "$vcs_prompt" "$vcs_visual_identifier" |