aboutsummaryrefslogtreecommitdiff
path: root/zsh/prompt
blob: 5c2ba5a9989bc647490089cd35b0cf3bc3eaafc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# vim: filetype=zsh

autoload -Uz vcs_info
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
setopt prompt_subst

RPROMPT=\$vcs_info_msg_0_
PROMPT=$'[%F{green}%n%F{white}@%F{green}%m%F{white}] %F{white}%~ %B%F{blue}>%f%b '

zstyle ':vcs_info:*' unstagedstr ' *'
zstyle ':vcs_info:*' stagedstr ' +'
zstyle ':vcs_info:*' check-for-changes true
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'
zstyle ':vcs_info:*' formats       '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%u%c%F{5}]%f'
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'