diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2011-03-07 14:45:37 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2011-03-07 14:46:10 +0100 |
commit | 62c0f21542f06c00839bb8be506511ef215fe2ec (patch) | |
tree | a212cad51d6fdb232a0e056a8599fb4f8371fc7f /.zsh/zshrc | |
parent | c5903815012033d365f1295f4dbeedee20622692 (diff) |
Add vcs_info setup
Diffstat (limited to '.zsh/zshrc')
-rw-r--r-- | .zsh/zshrc/70_vcs_info | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.zsh/zshrc/70_vcs_info b/.zsh/zshrc/70_vcs_info new file mode 100644 index 0000000..409485e --- /dev/null +++ b/.zsh/zshrc/70_vcs_info @@ -0,0 +1,23 @@ +# zshrc/70_vcs_info +# +# set up vcs_info +# +# Copyright © 2011 Tobias Klauser <tklauser@distanz.ch> +# Released under the terms of the Artistic Licence 2.0 +# +# Source repository: git://git.distanz.ch/dotfiles/zsh.git + +autoload -Uz vcs_info + +zstyle ':vcs_info:*' actionformats \ + '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%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%F{5}]%f ' +zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' + +# disable some vcs I don't use +zstyle ':vcs_info:*' disable cdv darcs mtn svk p4 tla + +precmd_functions+=vcs_info + +# vim:ft=zsh |