summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_env
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2026-05-17 02:34:49 +0200
committerOliver Kiddle <opk@zsh.org>2026-05-19 00:17:07 +0200
commita743a83b91347d898dfeb67b58d84c6e1355563a (patch)
treeae0ab9ce5a2d6b8b50dd900f35b33487620f4b33 /Completion/Unix/Command/_env
parent54576: adapt git config completon to new sub-commands (diff)
downloadzsh-a743a83b91347d898dfeb67b58d84c6e1355563a.tar
zsh-a743a83b91347d898dfeb67b58d84c6e1355563a.tar.gz
zsh-a743a83b91347d898dfeb67b58d84c6e1355563a.tar.bz2
zsh-a743a83b91347d898dfeb67b58d84c6e1355563a.tar.lz
zsh-a743a83b91347d898dfeb67b58d84c6e1355563a.tar.xz
zsh-a743a83b91347d898dfeb67b58d84c6e1355563a.tar.zst
zsh-a743a83b91347d898dfeb67b58d84c6e1355563a.zip
54577: restore environment variable completion to env
Diffstat (limited to 'Completion/Unix/Command/_env')
-rw-r--r--Completion/Unix/Command/_env4
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_env b/Completion/Unix/Command/_env
index b9094339e..6173394e0 100644
--- a/Completion/Unix/Command/_env
+++ b/Completion/Unix/Command/_env
@@ -69,7 +69,9 @@ if [[ -n $state ]]; then
shift words
(( CURRENT-- ))
done
- _normal -p env && ret=0
+ _alternative \
+ 'parameters:environment variable:_parameters -g "*export*" -qS=' \
+ 'normal:: _normal -p env' && ret=0
;;
user-class)
if compset -P 1 '*/'; then