modularized zshrc

This commit is contained in:
Loic Nageleisen 2012-08-10 14:39:37 +02:00
parent cf509c03fc
commit d1bec20d74
9 changed files with 147 additions and 125 deletions

9
zsh/prompt_vcs Normal file
View file

@ -0,0 +1,9 @@
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git hg
zstyle ':vcs_info:*' stagedstr "%F{red}±%f"
zstyle ':vcs_info:*' unstagedstr "%F{yellow}≠%f"
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' formats "%c%u %F{green}%S%f%F{blue}%b%f%F{yellow}%r%f"
zstyle ':vcs_info:*' actionformats "%F{red}%a%f %c%u %F{green}%S%f%F{blue}%b%f%F{yellow}%r%f"
# vim: ft=zsh