summaryrefslogtreecommitdiff
path: root/61_VCS.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-03-07 18:43:12 +0100
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-03-07 18:43:25 +0100
commit44565988a8345b19f39cd2a4619cd2c0fcecf9a9 (patch)
tree62020bdc2dee72e48bb2925735e6cf82f4667678 /61_VCS.zsh
parentdac40ba1e286aed29df3f0ac505842be23db600b (diff)
[Prompts] uses vcs_info
Diffstat (limited to '61_VCS.zsh')
-rw-r--r--61_VCS.zsh22
1 files changed, 22 insertions, 0 deletions
diff --git a/61_VCS.zsh b/61_VCS.zsh
new file mode 100644
index 0000000..466e585
--- /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 "%R $_reset_$C_$color[cyan];$color[bold]$_C/$C_$_prompt_colors[bold_generic]$_C%S$_reset_ [$_reset_%c%u%b$_reset_]"
+zstyle ':vcs_info:*' actionformats "%R $_reset_/%S %B[$_reset_(%a) %c%u%b$_reset_%B]$_reset_"
+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
+