diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2016-04-03 20:13:58 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2016-04-03 20:13:58 +0300 |
commit | 104e774873aea435d3a8462470da6213c38257f8 (patch) | |
tree | de63d51717f571eaf08a8d8edd088908bd5194f3 | |
parent | 2d3131fb8ab712d169539f8e139e7899aa6d014a (diff) |
Fix configurability of actionformat color
-rw-r--r-- | CHANGELOG.md | 5 | ||||
-rwxr-xr-x | powerlevel9k.zsh-theme | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 557f977b..218e1d76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,11 @@ POWERLEVEL9K_VCS_CLEAN_FOREGROUND='cyan' POWERLEVEL9K_VCS_CLEAN_BACKGROUND='white' ``` +The foreground color of actionformat is now configurable via: +```zsh +POWERLEVEL9K_VCS_ACTIONFORMAT_FOREGROUND='green' +``` + ### `aws_eb_env` added This segment displays the current Elastic Beanstalk environment. diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index bba5a6f6..1a620a23 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -778,6 +778,7 @@ prompt_todo() { # VCS segment: shows the state of your repository, if you are in a folder under # version control +set_default POWERLEVEL9K_VCS_ACTIONFORMAT_FOREGROUND "red" prompt_vcs() { autoload -Uz vcs_info @@ -791,7 +792,6 @@ prompt_vcs() { 'clean' 'green' 'modified' 'yellow' 'untracked' 'green' - 'actionformat' 'red' ) VCS_CHANGESET_PREFIX='' @@ -811,7 +811,7 @@ prompt_vcs() { VCS_DEFAULT_FORMAT="$VCS_CHANGESET_PREFIX%b%c%u%m" zstyle ':vcs_info:*' formats "$VCS_DEFAULT_FORMAT" - zstyle ':vcs_info:*' actionformats "%b %F{${vcs_states[actionformat]}}| %a%f" + zstyle ':vcs_info:*' actionformats "%b %F{${POWERLEVEL9K_VCS_ACTIONFORMAT_FOREGROUND}}| %a%f" zstyle ':vcs_info:*' stagedstr " $(print_icon 'VCS_STAGED_ICON')" zstyle ':vcs_info:*' unstagedstr " $(print_icon 'VCS_UNSTAGED_ICON')" |