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

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