about summary refs log tree commit diff
path: root/Completion/Unix/Command/_env
blob: f38be61b7a38b3c1133b953f48e0f790a4ac9ebc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#compdef env

if _pick_variant gnu=Free\ Soft unix --version; then
  _arguments \
    '(--ignore-environment -i)'{-i,--ignore-environment}'[start with empty environment]' \
    '*'{-u,--unset=}':env var to remove:compadd ${(k)parameters[(R)*export*]}' \
    '--help[help]' \
    '--version[version]' \
    '*::arguments: _normal'
else
  _precommand
fi