]> git.madduck.net Git - etc/zsh.git/blob - .zsh/zshrc/75_vcsinfo

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

use slexy as pastebin
[etc/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