diff options
author | Peter Stephenson <pws@zsh.org> | 2017-10-10 10:00:57 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2017-10-10 10:01:01 +0100 |
commit | aeed51fdfcdc10b6f866c9ff794c5baa99d1b39e (patch) | |
tree | b9a0d40bf2073343e124e2dbc8024448acce3613 /Completion/Unix/Command/_expand_cmd | |
parent | ff3e47e9f4fdde30512f48a4e11b2bbaee0c22a3 (diff) | |
download | zsh-aeed51fdfcdc10b6f866c9ff794c5baa99d1b39e.tar.gz zsh-aeed51fdfcdc10b6f866c9ff794c5baa99d1b39e.tar.xz zsh-aeed51fdfcdc10b6f866c9ff794c5baa99d1b39e.zip |
unposted: rename _expand command completion to avoid clash with completer
Diffstat (limited to 'Completion/Unix/Command/_expand_cmd')
-rw-r--r-- | Completion/Unix/Command/_expand_cmd | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_expand_cmd b/Completion/Unix/Command/_expand_cmd new file mode 100644 index 000000000..3f297dce2 --- /dev/null +++ b/Completion/Unix/Command/_expand_cmd @@ -0,0 +1,16 @@ +#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' |