tmux-cssh: add README

This commit is contained in:
Marc Cornellà 2019-12-27 02:34:35 +01:00
parent ca8a5a0a84
commit 8ea20fdca7
2 changed files with 22 additions and 12 deletions

View File

@ -0,0 +1,10 @@
# tmux-cssh plugin
This plugin adds autocompletion for [`tmux-cssh`](https://github.com/zinic/tmux-cssh/).
To use it, add `tmux-cssh` to the plugins array in your zshrc file:
```zsh
plugins=(... tmux-cssh)
```
First upstream repo, now disappeared: https://github.com/dennishafemann/tmux-cssh.

View File

@ -5,21 +5,21 @@
# Author: Manfred Touron (@moul) # Author: Manfred Touron (@moul)
_arguments \ _arguments \
'(-h --help)'{-h,--help}'[This help.]' \ '(-h --help)'{-h,--help}'[This help.]' \
'(-u --user)'{-u,--user}'[User to use.]' \ '(-u --user)'{-u,--user}'[User to use.]' \
'(-c --certificate)'{-c,--certificate}'[Path to ssh-certificate to use.]' \ '(-c --certificate)'{-c,--certificate}'[Path to ssh-certificate to use.]' \
'(-sc --ssh)'{-sc,--ssh}'[SSH-connection-string, multiple.]' \ '(-sc --ssh)'{-sc,--ssh}'[SSH-connection-string, multiple.]' \
'(-sa --ssh)'{-sa,--ssh}'[SSH connection arguments, used on every session.]' \ '(-sa --ssh)'{-sa,--ssh}'[SSH connection arguments, used on every session.]' \
'(-ts --tmux)'{-ts,--tmux}'[Alternative tmux-session-name, default: tmux-cssh]' \ '(-ts --tmux)'{-ts,--tmux}'[Alternative tmux-session-name, default: tmux-cssh]' \
'(-ns --new)'{-ns,--new}'[Initializes a new session, like -ts \[name\].]' \ '(-ns --new)'{-ns,--new}'[Initializes a new session, like -ts \[name\].]' \
'(-q --quiet)'{-q,--quiet}'[Quiet-mode.]' \ '(-q --quiet)'{-q,--quiet}'[Quiet-mode.]' \
'(-f --filename)'{-f,--filename}'[Filename of textfile to get -sc connection-strings from, line separated.]' \ '(-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).]' \ '(-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' \ ':hosts:_hosts' \
'*:: :->subcmds' \ '*:: :->subcmds' \
&& return 0 && return 0
if (( CURRENT == 1 )); then if (( CURRENT == 1 )); then
_describe -t commands "tmux-cssh command" _describe -t commands "tmux-cssh command"
return return
fi fi