diff options
Diffstat (limited to 'zsh/prompt')
| -rw-r--r-- | zsh/prompt | 10 |
1 files changed, 8 insertions, 2 deletions
| @@ -2,8 +2,14 @@ autoload -Uz vcs_info | |||
| 2 | precmd_vcs_info() { vcs_info } | 2 | precmd_vcs_info() { vcs_info } |
| 3 | precmd_functions+=( precmd_vcs_info ) | 3 | precmd_functions+=( precmd_vcs_info ) |
| 4 | setopt prompt_subst | 4 | setopt prompt_subst |
| 5 | |||
| 5 | RPROMPT=\$vcs_info_msg_0_ | 6 | RPROMPT=\$vcs_info_msg_0_ |
| 6 | PROMPT=$'[%F{red}%n%F{white}@%F{cyan}%m%F{white}] %F{white}%~ %B%F{blue}>%f%b ' | 7 | PROMPT=$'[%F{red}%n%F{white}@%F{cyan}%m%F{white}] %F{white}%~ %B%F{blue}>%f%b ' |
| 7 | zstyle ':vcs_info:*' actionformats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f' | 8 | |
| 8 | zstyle ':vcs_info:*' formats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f' | 9 | zstyle ':vcs_info:*' unstagedstr ' *' |
| 10 | zstyle ':vcs_info:*' stagedstr ' +' | ||
| 11 | zstyle ':vcs_info:*' check-for-changes true | ||
| 12 | zstyle ':vcs_info:*' actionformats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%a%u%c%F{3}|%F{1}%a%F{5}]%f' | ||
| 13 | zstyle ':vcs_info:*' formats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%u%c%F{5}]%f' | ||
| 9 | zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' | 14 | zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' |
| 15 | |||
