]> git.donarmstrong.com Git - zsh.git/commitdiff
add initial vcs_info setup, not yet used
authormartin f. krafft <madduck@madduck.net>
Tue, 30 Sep 2008 16:41:12 +0000 (18:41 +0200)
committermartin f. krafft <madduck@madduck.net>
Tue, 30 Sep 2008 16:41:12 +0000 (18:41 +0200)
.zsh/zshrc/75_vcsinfo [new file with mode: 0644]

diff --git a/.zsh/zshrc/75_vcsinfo b/.zsh/zshrc/75_vcsinfo
new file mode 100644 (file)
index 0000000..5592fc1
--- /dev/null
@@ -0,0 +1,26 @@
+# zshrc/75_vcsinfo
+#
+# Set up vcs_info subsystem
+#
+# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
+# Released under the terms of the Artistic Licence 2.0
+#
+# Source repository: git://git.madduck.net/etc/zsh.git
+#
+
+# see zsh-betacontrib(1)
+
+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'
+
+#PS1=’%F{5}[%F{2}%n%F{5}] %F{3}%3~ ${vcs_info_msg_0_}’"%f%# ’
+
+zstyle ':vcs_info:*' disable cdv darcs mtn svk p4 tla
+
+#this enables vcs_info
+#precmd_functions+=vcs_info