]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/tmux-cssh/_tmux-cssh
...
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / tmux-cssh / _tmux-cssh
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
22 if (( CURRENT == 1 )); then
23   _describe -t commands "tmux-cssh command"
24   return
25 fi