Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] env completion: add missing explanation of --unset option, fixes alignment of completed arguments
- X-seq: zsh-users 14566
- From: Ingmar Vanhassel <ingmar@xxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: [PATCH] env completion: add missing explanation of --unset option, fixes alignment of completed arguments
- Date: Thu, 12 Nov 2009 21:13:39 +0100
- Cc: Zsh users list <zsh-users@xxxxxxx>, Ingmar Vanhassel <ingmar@xxxxxxxxxxx>
- In-reply-to: <alpine.LNX.2.01.0911121446150.26715@xxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <alpine.LNX.2.01.0911121446150.26715@xxxxxxxxxxx>
---
Completion/Unix/Command/_env | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
I was getting a few patch series ready to send, but I guess I can fire this one
off already, it probably fixes your issue.
What I've not figured out, is how to make 'env FOO=bar quux <TAB>' complete
options to 'quux'. I guess that'll take someone with more experience than me.
diff --git a/Completion/Unix/Command/_env b/Completion/Unix/Command/_env
index 2638186..383891f 100644
--- a/Completion/Unix/Command/_env
+++ b/Completion/Unix/Command/_env
@@ -3,7 +3,7 @@
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*]}' \
+ '(--unset= -u)'{-u,--unset=}'[remove variable from the environment]:env var to remove:compadd ${(k)parameters[(R)*export*]}' \
'--help[help]' \
'--version[version]' \
'*::arguments: _normal'
--
1.6.5.2.351.g0943
Messages sorted by:
Reverse Date,
Date,
Thread,
Author