diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 14:36:36 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 14:36:36 +0000 |
commit | 956ef612e2a797a3f0325cafb034b654b9e8922f (patch) | |
tree | 723d823c481356dad3a12f48aa62fee2362755a7 /Completion/Unix | |
parent | 610a6eb841d997c633fd6ffb52faa006396a5ceb (diff) | |
download | zsh-956ef612e2a797a3f0325cafb034b654b9e8922f.tar.gz zsh-956ef612e2a797a3f0325cafb034b654b9e8922f.tar.xz zsh-956ef612e2a797a3f0325cafb034b654b9e8922f.zip |
cleanup after function move
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Type/_dict_words | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Completion/Unix/Type/_dict_words b/Completion/Unix/Type/_dict_words new file mode 100644 index 000000000..44448e8f8 --- /dev/null +++ b/Completion/Unix/Type/_dict_words @@ -0,0 +1,17 @@ +#autoload + +local dict dictresult dictwords j expl + +[[ -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 |