]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Use completion dumpfile in ~/.zsh/cache.
authorSimon Ruderich <simon@ruderich.org>
Fri, 6 Feb 2009 16:22:34 +0000 (17:22 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 16 Feb 2009 15:34:42 +0000 (16:34 +0100)
This reduces cluttering of ~/ with Zsh files.

zsh/rc

diff --git a/zsh/rc b/zsh/rc
index e133f6d18cf5a577da4b5595fd3f986995157b8b..a13c020e8fd2366422a869f626defb9c5ecf1aba 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -165,8 +165,9 @@ fi
 # Load the complist module which provides additions to completion lists
 # (coloring, scrollable).
 zmodload zsh/complist
-# Use new completion system.
-autoload -U compinit && compinit
+# Use new completion system, store dumpfile in ~/.zsh/cache to prevent
+# cluttering of ~/.
+autoload -U compinit && compinit -d ~/.zsh/cache/zcompdump
 # Make sure the list of possible completions is displayed after pressing <TAB>
 # the first time.
 setopt nolistambiguous