1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-26 18:01:03 +02:00

22418: completion for GNU env.

This commit is contained in:
Clint Adams 2006-04-13 02:46:50 +00:00
parent 9491c3c754
commit c9a761df01
3 changed files with 19 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2006-04-13 Clint Adams <clint@zsh.org>
* 22418: Completion/Unix/Command/_env,
Completion/Zsh/Command/_precommand: completion for
GNU env.
2006-04-11 Peter Stephenson <pws@csr.com>
* 22417: Functions/MIME/zsh-mime-handler: also

View file

@ -0,0 +1,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

View file

@ -1,4 +1,4 @@
#compdef - nohup env eval time rusage noglob nocorrect exec catchsegv
#compdef - nohup eval time rusage noglob nocorrect exec catchsegv
shift words
(( CURRENT-- ))