Update prompt VC info

This commit is contained in:
Tom Willemse 2015-04-08 15:17:26 +02:00
parent 677f124c94
commit 5b37bf8efb

View file

@ -54,18 +54,19 @@ typeset -ga chpwd_functions
add-zsh-hook precmd vcs_info
zstyle ':vcs_info:*' actionformats '%u%c %B%F{1}%a%f%%b (%F{3}%s%f) %F{5}%r%f:%F{4}%b%f %F{2}%S%f'
zstyle ':vcs_info:*' actionformats '%u%c%B%F{1}%a%f%%b %F{3}%s%f:%F{5}%r%f:%F{4}%b%f'
zstyle ':vcs_info:*' enable bzr git hg svn
zstyle ':vcs_info:*' formats '%u%c (%F{3}%s%f) %F{5}%r%f:%F{4}%b%f %F{2}%S%f'
zstyle ':vcs_info:*' nvcsformats '%F{2}%~%f'
zstyle ':vcs_info:*' formats '%u%c%F{3}%s%f:%F{5}%r%f:%F{4}%b%f'
zstyle ':vcs_info:*' nvcsformats ''
zstyle ':vcs_info:bzr:*' branchformat '%b'
zstyle ':vcs_info:git:*' check-for-changes 1
zstyle ':vcs_info:*' stagedstr '%F{2}Δ%f'
zstyle ':vcs_info:*' unstagedstr '%F{1}Δ%f'
# Set the prompt.
PROMPT='${vcs_info_msg_0_}
%B%(?.%F{2}.%F{1})→%b '
PROMPT='%T %2~ %B%(?.%F{2}.%F{1})→%b '
RPROMPT='${vcs_info_msg_0_}'
# Set terminal name to current running application
case $TERM in