|
|
@ -778,6 +778,7 @@ prompt_todo() {
|
|
|
|
|
|
|
|
|
|
|
|
# VCS segment: shows the state of your repository, if you are in a folder under
|
|
|
|
# VCS segment: shows the state of your repository, if you are in a folder under
|
|
|
|
# version control
|
|
|
|
# version control
|
|
|
|
|
|
|
|
set_default POWERLEVEL9K_VCS_ACTIONFORMAT_FOREGROUND "red"
|
|
|
|
prompt_vcs() {
|
|
|
|
prompt_vcs() {
|
|
|
|
autoload -Uz vcs_info
|
|
|
|
autoload -Uz vcs_info
|
|
|
|
|
|
|
|
|
|
|
@ -791,7 +792,6 @@ prompt_vcs() {
|
|
|
|
'clean' 'green'
|
|
|
|
'clean' 'green'
|
|
|
|
'modified' 'yellow'
|
|
|
|
'modified' 'yellow'
|
|
|
|
'untracked' 'green'
|
|
|
|
'untracked' 'green'
|
|
|
|
'actionformat' 'red'
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
VCS_CHANGESET_PREFIX=''
|
|
|
|
VCS_CHANGESET_PREFIX=''
|
|
|
@ -811,7 +811,7 @@ prompt_vcs() {
|
|
|
|
VCS_DEFAULT_FORMAT="$VCS_CHANGESET_PREFIX%b%c%u%m"
|
|
|
|
VCS_DEFAULT_FORMAT="$VCS_CHANGESET_PREFIX%b%c%u%m"
|
|
|
|
zstyle ':vcs_info:*' formats "$VCS_DEFAULT_FORMAT"
|
|
|
|
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:*' stagedstr " $(print_icon 'VCS_STAGED_ICON')"
|
|
|
|
zstyle ':vcs_info:*' unstagedstr " $(print_icon 'VCS_UNSTAGED_ICON')"
|
|
|
|
zstyle ':vcs_info:*' unstagedstr " $(print_icon 'VCS_UNSTAGED_ICON')"
|
|
|
|