_tmux-cssh
1092 bytes
1#compdef tmux-cssh
2
3# tmux-cssh autocompletion for oh-my-zsh
4# Requires: tmux-cssh installed
5# Author: Manfred Touron (@moul)
6
7_arguments \
8 '(-h --help)'{-h,--help}'[This help.]' \
9 '(-u --user)'{-u,--user}'[User to use.]' \
10 '(-c --certificate)'{-c,--certificate}'[Path to ssh-certificate to use.]' \
11 '(-sc --ssh)'{-sc,--ssh}'[SSH-connection-string, multiple.]' \
12 '(-sa --ssh)'{-sa,--ssh}'[SSH connection arguments, used on every session.]' \
13 '(-ts --tmux)'{-ts,--tmux}'[Alternative tmux-session-name, default: tmux-cssh]' \
14 '(-ns --new)'{-ns,--new}'[Initializes a new session, like -ts \[name\].]' \
15 '(-q --quiet)'{-q,--quiet}'[Quiet-mode.]' \
16 '(-f --filename)'{-f,--filename}'[Filename of textfile to get -sc connection-strings from, line separated.]' \
17 '(-cs --config)'{-cs,--config}'[Name of config-settings which should be get from config-file "$HOME/.tmux-cssh". Which can be a grep-regular expression to find the name(s).]' \
18 ':hosts:_hosts' \
19 '*:: :->subcmds' \
20 && return 0
21
22if (( CURRENT == 1 )); then
23 _describe -t commands "tmux-cssh command"
24 return
25fi