zshrc: introduce variable for the compdump file [Closes: issue1275]
[grml-etc-core.git] / etc / zsh / zshrc
index 1af7ed7..d032b3e 100644 (file)
@@ -601,8 +601,9 @@ if is4 ; then
 fi
 
 # completion system
+COMPDUMPFILE=${COMPDUMPFILE:-${ZDOTDIR:-${HOME}}/.zcompdump}
 if zrcautoload compinit ; then
-    compinit || print 'Notice: no compinit available :('
+    compinit -d ${COMPDUMPFILE} || print 'Notice: no compinit available :('
 else
     print 'Notice: no compinit available :('
     function compdef { }