diff options
author | Manfred Touron <m@42.am> | 2014-11-13 19:00:27 +0100 |
---|---|---|
committer | Manfred Touron <m@42.am> | 2014-11-13 19:00:27 +0100 |
commit | b7fcdc736417086c3623888763f3ba7a40162fb1 (patch) | |
tree | 14e2525eed6939ef439c33deba9a2ffad49a98e3 /plugins/tmux-cssh | |
parent | df5b09e20b05a5ba4234599602f7a74934c916db (diff) | |
download | zsh-b7fcdc736417086c3623888763f3ba7a40162fb1.tar.gz zsh-b7fcdc736417086c3623888763f3ba7a40162fb1.tar.bz2 zsh-b7fcdc736417086c3623888763f3ba7a40162fb1.zip |
[tmux-cssh plugin] Initial version
Diffstat (limited to 'plugins/tmux-cssh')
-rw-r--r-- | plugins/tmux-cssh/_tmux-cssh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/tmux-cssh/_tmux-cssh b/plugins/tmux-cssh/_tmux-cssh new file mode 100644 index 000000000..604e2e478 --- /dev/null +++ b/plugins/tmux-cssh/_tmux-cssh @@ -0,0 +1,25 @@ +#compdef tmux-cssh + +# tmux-cssh autocompletion for oh-my-zsh +# Requires: tmux-cssh installed +# Author: Manfred Touron (@moul) + +_arguments \ +'(-h --help)'{-h,--help}'[This help.]' \ +'(-u --user)'{-u,--user}'[User to use.]' \ +'(-c --certificate)'{-c,--certificate}'[Path to ssh-certificate to use.]' \ +'(-sc --ssh)'{-sc,--ssh}'[SSH-connection-string, multiple.]' \ +'(-sa --ssh)'{-sa,--ssh}'[SSH connection arguments, used on every session.]' \ +'(-ts --tmux)'{-ts,--tmux}'[Alternative tmux-session-name, default: tmux-cssh]' \ +'(-ns --new)'{-ns,--new}'[Initializes a new session, like -ts \[name\].]' \ +'(-q --quiet)'{-q,--quiet}'[Quiet-mode.]' \ +'(-f --filename)'{-f,--filename}'[Filename of textfile to get -sc connection-strings from, line separated.]' \ +'(-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).]' \ + ':hosts:_hosts' \ + '*:: :->subcmds' \ + && return 0 + +if (( CURRENT == 1 )); then + _describe -t commands "tmux-cssh command" + return +fi |