114058ab24
branch is redder state: white -> grey
17 lines
558 B
Plaintext
17 lines
558 B
Plaintext
# Git infos on the right
|
|
autoload -Uz vcs_info
|
|
precmd_vcs_info() { vcs_info }
|
|
precmd_functions+=( precmd_vcs_info )
|
|
setopt prompt_subst
|
|
zstyle ':vcs_info:git:*' check-for-changes true
|
|
zstyle ':vcs_info:git:*' stagedstr '*'
|
|
zstyle ':vcs_info:git:*' unstagedstr '!'
|
|
zstyle ':vcs_info:git:*' formats '(%F{202}%b%F{007}: %c/%u%F{007}) '
|
|
zstyle ':vcs_info:*' enable git
|
|
|
|
PROMPT="[ %{$fg[cyan]%}%n\
|
|
%{$reset_color%}: \
|
|
%B%{$fg[magenta]%}%(4~|%-1~/.../%2~|%~)%} \
|
|
%{$reset_color%}] \
|
|
\$vcs_info_msg_0_%(?:%{$fg_bold[green]%}:%{$fg_bold[red]%})$%{$reset_color%}%b "
|