diff options
| author | Julien Nicoulaud <julien.nicoulaud@gmail.com> | 2011-07-31 19:49:35 +0200 |
|---|---|---|
| committer | Julien Nicoulaud <julien.nicoulaud@gmail.com> | 2011-07-31 19:49:39 +0200 |
| commit | 54f6fa1db9106f4e50e817eb5859e001bc456e50 (patch) | |
| tree | 7109f3148f417f113efbfcc2165e7accd3753b62 | |
| parent | Ack: add --type/--notype options (diff) | |
| download | zsh-completions-54f6fa1db9106f4e50e817eb5859e001bc456e50.tar zsh-completions-54f6fa1db9106f4e50e817eb5859e001bc456e50.tar.gz zsh-completions-54f6fa1db9106f4e50e817eb5859e001bc456e50.tar.bz2 zsh-completions-54f6fa1db9106f4e50e817eb5859e001bc456e50.tar.lz zsh-completions-54f6fa1db9106f4e50e817eb5859e001bc456e50.tar.xz zsh-completions-54f6fa1db9106f4e50e817eb5859e001bc456e50.tar.zst zsh-completions-54f6fa1db9106f4e50e817eb5859e001bc456e50.zip | |
Ack: complete --type-set with the extensions of the files in cwd
| -rw-r--r-- | _ack | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -149,7 +149,8 @@ _ack_colors() { _ack_type_defs() { local ret=1 if compset -P '*='; then - _message -e extensions 'extensions list' && ret=0 # TODO Provide the extensions of the files in the current dir here ? + local extensions; extensions=(*.*(:e)) + _values -s "," "file extensions" "."$extensions && ret=0 else _message -e type-name 'type name' && ret=0 fi |
