Add tmux_attach_start script zsh completions
Will autocomplete with currently open tmux sessions.
This commit is contained in:
parent
e7ff8c9f78
commit
65ad7f77ee
2 changed files with 13 additions and 0 deletions
12
tmux/.config/zsh/completions/_tmux_attach_start
Executable file
12
tmux/.config/zsh/completions/_tmux_attach_start
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#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))"
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue