summary refs log tree commit diff
path: root/Completion/Unix/Command/_expand
blob: 3f297dce26def0f0df81d04b4f3a59dacb2e25b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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'