From 1eab285fbddf563f09f9060f89aaf2a52a1f2d8d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 17 Oct 2008 18:06:54 +0200 Subject: etc/completion: compinit: Don't use -C when re-creating the cache --- etc/completion | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'etc/completion') 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" +} -- cgit v1.2.3