]> git.donarmstrong.com Git - zsh.git/blob - .zsh/zshrc/75_vcsinfo
5592fc1d910d1396337ea230ec36bcc6c73f2273
[zsh.git] / .zsh / zshrc / 75_vcsinfo
1 # zshrc/75_vcsinfo
2 #
3 # Set up vcs_info subsystem
4 #
5 # Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
6 # Released under the terms of the Artistic Licence 2.0
7 #
8 # Source repository: git://git.madduck.net/etc/zsh.git
9 #
10
11 # see zsh-betacontrib(1)
12
13 autoload -Uz vcs_info
14
15 zstyle ':vcs_info:*' actionformats \
16     '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
17 zstyle ':vcs_info:*' formats       \
18     '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f '
19 zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
20
21 #PS1=’%F{5}[%F{2}%n%F{5}] %F{3}%3~ ${vcs_info_msg_0_}’"%f%# ’
22
23 zstyle ':vcs_info:*' disable cdv darcs mtn svk p4 tla
24
25 #this enables vcs_info
26 #precmd_functions+=vcs_info