]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Actually enable the vcs_info cache.
authorSimon Ruderich <simon@ruderich.org>
Sat, 21 May 2011 10:51:15 +0000 (12:51 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 21 May 2011 10:51:15 +0000 (12:51 +0200)
This was broken in e531d6fcc133cfa82c0849a1845e7cbeaeff5600 when
introducing the cache. Git is really fast as I didn't notice it.

zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 8e3e2e042d341beb31661a933d76f048cc1e498e..7c833b5194b45263d16bc5b9b360f8cb8294a7ec 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -209,7 +209,7 @@ if [[ $ZSH_VERSION == (4.3.<9->|4.<4->*|<5->*) ||
 
     # Cache system inspired by Bart Trojanowski
     # (http://jukie.net/~bart/blog/pimping-out-zsh-prompt).
-    #zstyle ':vcs_info:*+pre-get-data:*' hooks pre-get-data
+    zstyle ':vcs_info:*+pre-get-data:*' hooks pre-get-data
     +vi-pre-get-data() {
         # Only Git and Mercurial support and need caching. Abort if any other
         # VCS is used.