about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 13:04:04 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 13:04:04 +0000
commit3d7263ff67534b5d533c1d78eca8d648b72bca93 (patch)
treed7c3f8d1fbaf58d52b092ef241dc37db974c370d /Completion/Unix
parentc6686513ef7eb29cbe4ed4cc27076d13b2e02ab5 (diff)
downloadzsh-3d7263ff67534b5d533c1d78eca8d648b72bca93.tar.gz
zsh-3d7263ff67534b5d533c1d78eca8d648b72bca93.tar.xz
zsh-3d7263ff67534b5d533c1d78eca8d648b72bca93.zip
after-move cleanup
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_dict21
-rw-r--r--Completion/Unix/Type/.distfiles2
2 files changed, 2 insertions, 21 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'
diff --git a/Completion/Unix/Type/.distfiles b/Completion/Unix/Type/.distfiles
index 1ae174230..2fa150d06 100644
--- a/Completion/Unix/Type/.distfiles
+++ b/Completion/Unix/Type/.distfiles
@@ -1,5 +1,6 @@
 DISTFILES_SRC='
 .distfiles
+_dict_words          _mailboxes           _perl_modules        _tex
 _diff_options        _my_accounts         _pids                _texi
 _dir_list            _newsgroups          _ports               _tilde_files
 _directories         _other_accounts      _printers            _urls
@@ -7,5 +8,4 @@ _domains             _path_files          _ps                  _user_at_host
 _files               _pdf                 _pspdf               _users
 _groups              _perl_basepods       _signals             _users_on
 _hosts               _perl_builtin_funcs  _tar_archive
-_mailboxes           _perl_modules        _tex
 '