summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_env
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2023-08-14 15:51:12 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2023-08-14 15:51:12 +0900
commit9b9870a6dc526e9d1f4406a730cbaa17a462e46f (patch)
treea8be0c78883a0232567e9fb1a05d4825bd15666a /Completion/Unix/Command/_env
parent40a6265aa3f611178ccb99b05522f458ac466f61 (diff)
downloadzsh-9b9870a6dc526e9d1f4406a730cbaa17a462e46f.tar.gz
zsh-9b9870a6dc526e9d1f4406a730cbaa17a462e46f.zip
52037: complete only external commands for env/watch
also includes a few minor fixes for _date, _env and _watch
Diffstat (limited to 'Completion/Unix/Command/_env')
-rw-r--r--Completion/Unix/Command/_env4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_env b/Completion/Unix/Command/_env
index f7283e132..bdab71bbe 100644
--- a/Completion/Unix/Command/_env
+++ b/Completion/Unix/Command/_env
@@ -9,7 +9,7 @@ case $variant in
(( $#words > 2 )) && ign='!'
args=(
'(-)'{-i,--ignore-environment}'[start with empty environment]'
- '(-0 --null)'{-0,--null}'[end each output line with NUL, not newline]'
+ '(* -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*"'
'(-C --chdir)'{-C+,--chdir=}'[change working directory]:directory:_directories'
'(-S --split-string)'{-S+,--split-string=}'[perform word splitting]:string to split'
@@ -59,7 +59,7 @@ if [[ -n $state ]]; then
shift words
(( CURRENT-- ))
done
- _normal && ret=0
+ _normal -p env && ret=0
;;
user-class)
if compset -P 1 '*/'; then