projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zshrc: introduce variable for the compdump file [Closes: issue1275]
[grml-etc-core.git]
/
etc
/
zsh
/
zshrc
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
1af7ed7
..
d032b3e
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-601,8
+601,9
@@
if is4 ; then
fi
# completion system
fi
# completion system
+COMPDUMPFILE=${COMPDUMPFILE:-${ZDOTDIR:-${HOME}}/.zcompdump}
if zrcautoload compinit ; then
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 { }
else
print 'Notice: no compinit available :('
function compdef { }