13 lines
313 B
Text
13 lines
313 B
Text
|
#compdef _tmux_attach_start
|
||
|
#
|
||
|
# Requires tmux_attach_start script in path
|
||
|
#
|
||
|
# Enables completion for zsh of tmux_attach_start function
|
||
|
# with currently open sessions, or tmux options.
|
||
|
|
||
|
_tmux_attach_start() {
|
||
|
_alternative \
|
||
|
"sessions:user sessions:($(tmux list-sessions -F'#{session_name}' 2>/dev/null))"
|
||
|
}
|
||
|
|