diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-17 18:06:54 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-17 18:06:54 +0200 |
commit | 1eab285fbddf563f09f9060f89aaf2a52a1f2d8d (patch) | |
tree | 446a62def349c140175d13cab7fa86d5bf859bf0 /etc/completion | |
parent | b339c2e81d539ecead054878a40fe47626da70d9 (diff) |
etc/completion: compinit: Don't use -C when re-creating the cache
Diffstat (limited to 'etc/completion')
-rw-r--r-- | etc/completion | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/completion b/etc/completion index 2ccda63..95f24bd 100644 --- a/etc/completion +++ b/etc/completion @@ -33,5 +33,10 @@ zstyle ':completion:*:*:(todo|td*):*:items' menu yes _hosts() { compadd derf.homelinux.org kraftwerk saviour kappa nemesis aneurysm;} -[[ -r $compdump ]] || echo "Re-creating completion cache, please wait..." -compinit -C -d $compdump +if [[ -r $compdump ]] { + compinit -C -d $compdump +} else { + echo -n "Re-creating completion cache..." + compinit -d $compdump + echo "ok" +} |