summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_env
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2025-01-27 23:00:17 +0100
committerOliver Kiddle <opk@zsh.org>2025-01-27 23:00:17 +0100
commit87aba4d437f5fef46917c1235c00b9162d7bcbd0 (patch)
treece578175d1248d14b8237ad86121b9396550c226 /Completion/Unix/Command/_env
parentdb01c79cf83290b9ac9d77e66d832551b7022f71 (diff)
downloadzsh-87aba4d437f5fef46917c1235c00b9162d7bcbd0.tar.gz
zsh-87aba4d437f5fef46917c1235c00b9162d7bcbd0.zip
53325: cover newer BSD releases in completion
Diffstat (limited to 'Completion/Unix/Command/_env')
-rw-r--r--Completion/Unix/Command/_env14
1 files changed, 11 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_env b/Completion/Unix/Command/_env
index 8cf0ad467..89a45e4a4 100644
--- a/Completion/Unix/Command/_env
+++ b/Completion/Unix/Command/_env
@@ -8,6 +8,7 @@ case $variant in
gnu)
(( $#words > 2 )) && ign='!'
args=(
+ '(-a --argv0)'{-a+,--argv0=}'[pass argument as the zeroth argument of command]:argument'
'(-)'{-i,--ignore-environment}'[start with empty environment]'
'(* -0 --null)'{-0,--null}'[end each output line with NUL, not newline]'
'(--ignore-environment -i --help --version)*'{-u+,--unset=}'[remove variable from the environment]:env var to remove:_parameters -g "*export*"'
@@ -28,12 +29,19 @@ case $variant in
'-U[add variables from user and system login.conf(5)]: :->user-class'
)
;|
- freebsd*|darwin*)
- args=( '-0[use NUL, not newline after each variable in output]' )
+ freebsd*|netbsd*)
+ args+=( '-C+[change working directory]:directory:_directories' )
;|
- freebsd*|darwin*|dragonfly*)
+ freebsd*|darwin*|netbsd*)
+ args+=( '-0[use NUL, not newline after each variable in output]' )
+ ;|
+ freebsd*|darwin*|dragonfly*|netbsd*|openbsd*)
args+=(
'(-i)*-u+[remove variable from the environment]:env var to remove:_parameters -g "*export*"'
+ )
+ ;|
+ freebsd*|darwin*|dragonfly*)
+ args+=(
'-P+[specify alternate executable search PATH]:path:_dir_list'
'-S+[perform word splitting]:string to split'
'*-v[verbose output]'