summary refs log tree commit diff
path: root/Completion/Unix/Command/_env
blob: 263818627418d8447c0a13cb06f5e632aa186542 (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