From c9a761df01cba44f7f2f14cb97af7dedd6fdb8e9 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Thu, 13 Apr 2006 02:46:50 +0000 Subject: 22418: completion for GNU env. --- Completion/Unix/Command/_env | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Completion/Unix/Command/_env (limited to 'Completion/Unix/Command/_env') diff --git a/Completion/Unix/Command/_env b/Completion/Unix/Command/_env new file mode 100644 index 000000000..263818627 --- /dev/null +++ b/Completion/Unix/Command/_env @@ -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 -- cgit 1.4.1