diff options
| author | Oliver Kiddle <opk@zsh.org> | 2017-10-11 01:23:56 +0200 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2017-10-11 01:23:56 +0200 |
| commit | 1a3a07a35f0bea5774297ccf2ab4ddd9b525fc94 (patch) | |
| tree | 303b14bcc74de299cfee750b3811e3c0d7b6e571 /Completion/Unix/Command/_expand_cmd | |
| parent | 41831: fix compset usage in ogg123 completion and tweak where compset -p is a... (diff) | |
| download | zsh-1a3a07a35f0bea5774297ccf2ab4ddd9b525fc94.tar zsh-1a3a07a35f0bea5774297ccf2ab4ddd9b525fc94.tar.gz zsh-1a3a07a35f0bea5774297ccf2ab4ddd9b525fc94.tar.bz2 zsh-1a3a07a35f0bea5774297ccf2ab4ddd9b525fc94.tar.lz zsh-1a3a07a35f0bea5774297ccf2ab4ddd9b525fc94.tar.xz zsh-1a3a07a35f0bea5774297ccf2ab4ddd9b525fc94.tar.zst zsh-1a3a07a35f0bea5774297ccf2ab4ddd9b525fc94.zip | |
41849: handle both unexpand and expand in a single function
They have some commonalities and using _unexpand dodges around
the clash with the _expand completer.
Diffstat (limited to 'Completion/Unix/Command/_expand_cmd')
| -rw-r--r-- | Completion/Unix/Command/_expand_cmd | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Completion/Unix/Command/_expand_cmd b/Completion/Unix/Command/_expand_cmd deleted file mode 100644 index 3f297dce2..000000000 --- a/Completion/Unix/Command/_expand_cmd +++ /dev/null @@ -1,16 +0,0 @@ -#compdef expand gexpand - -local -a args - -if _pick_variant gnu=GNU unix --version; then - args=( - '(-i --initial --help)'{-i,--initial}"[don't convert tabs after non blanks]" - '(-t --tabs --version)'{-t+,--tabs=}'[specify tab width]:list of tab positions' - '(* -)--help[display usage information]' - '(* -)--version[output version information]' - ) -else - args=( -A "-*" '(-t --tabs)'{-t+,--tabs=}'[specify tab width]:list of tab positions' ) -fi - -_arguments -s -S "$args[@]" '*:file:_files' |
