1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-24 04:50:27 +02:00

36049: _tmux: options => session_options

This commit is contained in:
Frank Terbeck 2015-08-10 15:27:29 +02:00
parent ad7ef9cf1f
commit 1afcae59e6
2 changed files with 8 additions and 5 deletions

View file

@ -23,6 +23,9 @@
* 36054: Completion/Unix/Command/_tmux: _tmux: "local -x" serves * 36054: Completion/Unix/Command/_tmux: _tmux: "local -x" serves
no purpose no purpose
* 36049: Completion/Unix/Command/_tmux: _tmux: options =>
session_options
2015-08-10 Peter Stephenson <p.stephenson@samsung.com> 2015-08-10 Peter Stephenson <p.stephenson@samsung.com>
* 36045: Test/A05execution.ztst: make effect of failures * 36045: Test/A05execution.ztst: make effect of failures

View file

@ -1423,9 +1423,9 @@ function __tmux-option-guard() {
esac esac
} }
function __tmux-options() { function __tmux-session-options() {
local -a tmux_options local -a tmux_session_options
tmux_options=( tmux_session_options=(
'base-index:define where to start numbering' 'base-index:define where to start numbering'
'bell-action:set action on window bell' 'bell-action:set action on window bell'
'buffer-limit:number of buffers kept per session' 'buffer-limit:number of buffers kept per session'
@ -1479,7 +1479,7 @@ function __tmux-options() {
'visual-bell:use visual bell instead of audible' 'visual-bell:use visual bell instead of audible'
'visual-content:display status line messages upon content changes' 'visual-content:display status line messages upon content changes'
) )
_describe -t tmux-options 'tmux option' tmux_options _describe -t tmux-options 'tmux session option' tmux_session_options
} }
function __tmux-options-complete() { function __tmux-options-complete() {
@ -1488,7 +1488,7 @@ function __tmux-options-complete() {
case ${state} in case ${state} in
name_or_value) name_or_value)
if (( CURRENT == 1 )) && [[ ${mode} == 'session' ]]; then if (( CURRENT == 1 )) && [[ ${mode} == 'session' ]]; then
__tmux-options __tmux-session-options
elif (( CURRENT == 1 )) && [[ ${mode} == 'server' ]]; then elif (( CURRENT == 1 )) && [[ ${mode} == 'server' ]]; then
__tmux-server-options __tmux-server-options
elif (( CURRENT == 1 )) && [[ ${mode} == 'window' ]]; then elif (( CURRENT == 1 )) && [[ ${mode} == 'window' ]]; then