diff options
Diffstat (limited to 'Completion/Unix/Command/_expand')
-rw-r--r-- | Completion/Unix/Command/_expand | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_expand b/Completion/Unix/Command/_expand new file mode 100644 index 000000000..3f297dce2 --- /dev/null +++ b/Completion/Unix/Command/_expand @@ -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' |