Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 2/2] _tmux: show-environment, set-environment: Make -g,-t mutually exclusive.
- X-seq: zsh-workers 41557
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 2/2] _tmux: show-environment, set-environment: Make -g,-t mutually exclusive.
- Date: Thu, 17 Aug 2017 04:19:11 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=TCT0mEMD0sQIA+LbjgHPivrav17ld1/EQXOC3kjqf jk=; b=Cd5wxhjSLDFaIEMHhYVZZitwNYDBffgeofWL2S2EoPHfd2WSeUpZobeE8 LaltvFV4PlIGBmoB/N+WvsVvHQYX9Bmo3Q0NCmZtxH08K3EUyr0Bb3NQAkOPLGvs jdl9xwJbPK/NOTxUk0sa7pH3u6S2qHiK90dmWVpIMZ5I6v6rAOB3jT4vx8GWQBTk yagtq2BEPczOZSBofUUmrNNOo9WaRPOEK98bd5dMXpTcSHAd7efeSU1TGa2TZngQ bhnPNoKZ9u+iU9rpbn8LbZMP8LanfJ5nJ2dWNQVKWV+GgVu6vsBm25ucFQqQhbw3 WSORTOBsiEkgIDwmfHh3GieIbuANw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=TCT0mEMD0sQIA+LbjgHPivrav17ld1/EQXOC3kjqf jk=; b=PSCeUasOoAdTeh0H27vbam6gNRh/pG7MznlOb5Lw5JOLr45bHPiFxHGWN HJd6sCxbXlZDWjo58WoZHNdsxUQN4UsWiyURYa3C93DUSLIPqfvz/mMwRNEkp2DL jc1vxK1sB/kFQxIn/LNXaO75D3I4UYNX4pvNuWejR3BFno9k8JhaeicStSjmlbEg 8RGA2anztdrCY3zr3ojr+NZ6w2eABCoHWtzxSzYugaknAhOmG3Ydo/Vi+eY7tQOF MdxOjlgt/dCxN72Da4FdGx27SAP/CUHA63zl2z3FhFIRrz3rYFpSCYchItyUV04B qWgabfozaknXFsSATV6O4xw57cagg==
- In-reply-to: <20170817041911.9623-1-danielsh@tarpaulin.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20170817041911.9623-1-danielsh@tarpaulin.shahaf.local2>
tmux does not error out on the combination, but it does ignore one of
the two when both are specified.
---
Completion/Unix/Command/_tmux | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux
index 9339d6556..0f142bb0e 100644
--- a/Completion/Unix/Command/_tmux
+++ b/Completion/Unix/Command/_tmux
@@ -733,10 +733,10 @@ _tmux-set-buffer() {
_tmux-set-environment() {
[[ -n ${tmux_describe} ]] && print "(un)set an environment variable" && return
_arguments -s -A "-*" -S \
- '-g[modify global environment]' \
+ '(-t)-g[modify global environment]' \
'-r[remove variable before starting new processes]' \
'-u[unset a variable]' \
- '-t[specify target session]:target session:__tmux-sessions' \
+ '(-g)-t[specify target session]:target session:__tmux-sessions' \
':name' ':value'
}
@@ -805,9 +805,9 @@ _tmux-show-buffer() {
_tmux-show-environment() {
[[ -n ${tmux_describe} ]] && print "display the environment" && return
_arguments -s \
- '-g[show global environment]' \
+ '(-t)-g[show global environment]' \
'-s[format output as Bourne shell commands]' \
- '-t+[specify target session]:target session:__tmux-sessions'
+ '(-g)-t+[specify target session]:target session:__tmux-sessions' \
}
_tmux-show-messages() {
Messages sorted by:
Reverse Date,
Date,
Thread,
Author