about summary refs log tree commit diff
path: root/Completion/Unix/Command/_tmux
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2017-08-17 04:19:11 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2017-08-30 00:12:05 +0000
commit9a4fb22d893ff7c308965185ba15d2b4741029f8 (patch)
treef66507c7e32859eba555d33b41ae9c9dff017ac2 /Completion/Unix/Command/_tmux
parent383dc2a6f5d8ad0713311a3dc358cdc71a2dcf03 (diff)
downloadzsh-9a4fb22d893ff7c308965185ba15d2b4741029f8.tar.gz
zsh-9a4fb22d893ff7c308965185ba15d2b4741029f8.tar.xz
zsh-9a4fb22d893ff7c308965185ba15d2b4741029f8.zip
41557: _tmux: show-environment, set-environment: Make -g,-t mutually exclusive.
tmux does not error out on the combination, but it does ignore one of
the two when both are specified.
Diffstat (limited to 'Completion/Unix/Command/_tmux')
-rw-r--r--Completion/Unix/Command/_tmux8
1 files 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() {