diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2012-03-08 12:29:44 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-03-08 13:35:08 +0100 |
commit | dc2abe342ec7e0d674ea7c510566aba5a6b37f1e (patch) | |
tree | 0266c374f5e978e6b2992974027a6561fe5d6573 /61_VCS.zsh | |
parent | f61008d24c79c105c77682b2f7ce1c40b32744dc (diff) |
Get backs vcs_info.
Diffstat (limited to '61_VCS.zsh')
-rw-r--r-- | 61_VCS.zsh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/61_VCS.zsh b/61_VCS.zsh new file mode 100644 index 0000000..6122083 --- /dev/null +++ b/61_VCS.zsh @@ -0,0 +1,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 + |