From 9a4fb22d893ff7c308965185ba15d2b4741029f8 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 17 Aug 2017 04:19:11 +0000 Subject: 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. --- Completion/Unix/Command/_tmux | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Completion/Unix/Command/_tmux') 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() { -- cgit 1.4.1