about summary refs log tree commit diff
path: root/Completion/Unix/Command/_dict
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_dict')
-rw-r--r--Completion/Unix/Command/_dict21
1 files changed, 1 insertions, 20 deletions
diff --git a/Completion/Unix/Command/_dict b/Completion/Unix/Command/_dict
index 228603dbe..31b89ee1c 100644
--- a/Completion/Unix/Command/_dict
+++ b/Completion/Unix/Command/_dict
@@ -1,24 +1,5 @@
 #compdef dict
 
-local expl dictresults dictwords j dict
-
-_dictwords() {
-
-[[ -z $words[CURRENT] ]] && return 1
-
-dictresults=(${${(f)${"$(dict -m $words[CURRENT])":gs/    
-  / /}}:#[0-9]*matches found})
-
-for j in ${dictresults}
-do
-dict=${j%%:*}
-dictwords=(${(z)j#*:})
-
-_wanted $dict expl "words from $dict" \
-  compadd -M 'm:{a-zA-Z}={A-Za-z} r:|=*' -a "$@" - dictwords
-done
-}
-
 _arguments \
 	'(--host)-h[host]:dict server:_hosts' \
 	'(-h)--host:dict server:_hosts' \
@@ -63,4 +44,4 @@ _arguments \
 	'--pipesize:buffer size:' \
 	'--client:client text:' \
 	'--debug:debug flag:(verbose raw scan parse pipe serial time)' \
-	':word:_dictwords'
+	':word:_dict_words'