summaryrefslogtreecommitdiff
path: root/61_VCS.zsh
blob: 6122083f0a88bcc14366b1969fefefc09261cd0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
##
## Part of configuration files for Zsh 4
## by Hugues Hiegel <hugues@hiegel.fr>
## 
## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS
##
## You are encouraged to use, modify, and redistribute
## these files with or without this notice.
## 

# zshall

_reset_=$C_$_prompt_colors[soft_generic]$_C

autoload -Uz vcs_info
zstyle ':vcs_info:*'       formats "$_reset_ [%c%u%b$_reset_]" "%R" "%S"
zstyle ':vcs_info:*' actionformats "$_reset_ [(%B%a$_reset_) %c%u%b$_reset_]$_reset_" "%R" "%S"
zstyle ':vcs_info:*' stagedstr "$C_$color[yellow];$color[bold]$_C"
zstyle ':vcs_info:*' unstagedstr "$_C_$color[green]$_C"
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' get-revision false