From: Simon Ruderich Date: Sat, 21 May 2011 10:51:15 +0000 (+0200) Subject: zsh/rc: Actually enable the vcs_info cache. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=819bc9d7c9a57af67b48995ea17a1d8f63c6f58d;p=config%2Fdotfiles.git zsh/rc: Actually enable the vcs_info cache. This was broken in e531d6fcc133cfa82c0849a1845e7cbeaeff5600 when introducing the cache. Git is really fast as I didn't notice it. --- diff --git a/zsh/rc b/zsh/rc index 8e3e2e0..7c833b5 100644 --- 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.