summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_env
diff options
context:
space:
mode:
authorOliver Kiddle <okiddle@yahoo.co.uk>2018-08-28 23:16:54 +0200
committerOliver Kiddle <okiddle@yahoo.co.uk>2018-08-29 17:32:10 +0200
commit245503929e0369e985e694684b557aef6d1432eb (patch)
tree56a50e092bf96d19d0d599615d7ce404a1d44aa7 /Completion/Unix/Command/_env
parentfcb4f7956799c1e0803c0cb37ee3d17c230d7dcc (diff)
downloadzsh-245503929e0369e985e694684b557aef6d1432eb.tar.gz
zsh-245503929e0369e985e694684b557aef6d1432eb.zip
43346: various completion option updates
Diffstat (limited to 'Completion/Unix/Command/_env')
-rw-r--r--Completion/Unix/Command/_env9
1 files changed, 6 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_env b/Completion/Unix/Command/_env
index 96e96bd7b..99fc513d7 100644
--- a/Completion/Unix/Command/_env
+++ b/Completion/Unix/Command/_env
@@ -1,16 +1,19 @@
#compdef env genv
-local context state line variant args ret=1
+local context state line variant args ign ret=1
_pick_variant -r variant gnu=Free\ Soft $OSTYPE --version
case $variant in
gnu)
+ (( $#words > 2 )) && ign='!'
args=(
'(-)'{-i,--ignore-environment}'[start with empty environment]'
'(--ignore-environment -i --help --version)*'{-u+,--unset=}'[remove variable from the environment]:env var to remove:_parameters -g "*export*"'
'(-C --chdir)'{-C+,--chdir=}'[change working directory]:directory:_directories'
- '(- *)--help[display help information]'
- '(- *)--version[display version information]'
+ '(-S --split-string)'{-S+,--split-string=}'[perform word splitting]:string to split'
+ '(-v --debug)'{-v,--debug}'[print verbose information for each processing step]'
+ "${ign}(- *)--help[display help information]"
+ "${ign}(- *)--version[display version information]"
)
;;
freebsd*)