summaryrefslogtreecommitdiff
path: root/etc/completion
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-17 18:06:54 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-17 18:06:54 +0200
commit1eab285fbddf563f09f9060f89aaf2a52a1f2d8d (patch)
tree446a62def349c140175d13cab7fa86d5bf859bf0 /etc/completion
parentb339c2e81d539ecead054878a40fe47626da70d9 (diff)
etc/completion: compinit: Don't use -C when re-creating the cache
Diffstat (limited to 'etc/completion')
-rw-r--r--etc/completion9
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"
+}