8ea20fdca794a2a2c2f39cebd1e1861f9f0c6fbb

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

tmux-cssh: add README

Diff

 1diff --git a/plugins/tmux-cssh/README.md b/plugins/tmux-cssh/README.md
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..4602a502a79bcabb8400fcd30a6e2bc5ced73de3
 4--- /dev/null
 5+++ b/plugins/tmux-cssh/README.md
 6@@ -0,0 +1,10 @@
 7+# tmux-cssh plugin
 8+
 9+This plugin adds autocompletion for [`tmux-cssh`](https://github.com/zinic/tmux-cssh/).
10+
11+To use it, add `tmux-cssh` to the plugins array in your zshrc file:
12+```zsh
13+plugins=(... tmux-cssh)
14+```
15+
16+First upstream repo, now disappeared: https://github.com/dennishafemann/tmux-cssh.
17diff --git a/plugins/tmux-cssh/_tmux-cssh b/plugins/tmux-cssh/_tmux-cssh
18index 604e2e4783c0a8763f2773ca7bf2f5a425ca46c6..3e81b82ea613e2ee625d61a858a290484b9a912c 100644
19--- a/plugins/tmux-cssh/_tmux-cssh
20+++ b/plugins/tmux-cssh/_tmux-cssh
21@@ -5,21 +5,21 @@
22 # Author: Manfred Touron (@moul)
23 
24 _arguments \
25-'(-h --help)'{-h,--help}'[This help.]' \
26-'(-u --user)'{-u,--user}'[User to use.]' \
27-'(-c --certificate)'{-c,--certificate}'[Path to ssh-certificate to use.]' \
28-'(-sc --ssh)'{-sc,--ssh}'[SSH-connection-string, multiple.]' \
29-'(-sa --ssh)'{-sa,--ssh}'[SSH connection arguments, used on every session.]' \
30-'(-ts --tmux)'{-ts,--tmux}'[Alternative tmux-session-name, default: tmux-cssh]' \
31-'(-ns --new)'{-ns,--new}'[Initializes a new session, like -ts \[name\].]' \
32-'(-q --quiet)'{-q,--quiet}'[Quiet-mode.]' \
33-'(-f --filename)'{-f,--filename}'[Filename of textfile to get -sc connection-strings from, line separated.]' \
34-'(-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).]' \
35+  '(-h --help)'{-h,--help}'[This help.]' \
36+  '(-u --user)'{-u,--user}'[User to use.]' \
37+  '(-c --certificate)'{-c,--certificate}'[Path to ssh-certificate to use.]' \
38+  '(-sc --ssh)'{-sc,--ssh}'[SSH-connection-string, multiple.]' \
39+  '(-sa --ssh)'{-sa,--ssh}'[SSH connection arguments, used on every session.]' \
40+  '(-ts --tmux)'{-ts,--tmux}'[Alternative tmux-session-name, default: tmux-cssh]' \
41+  '(-ns --new)'{-ns,--new}'[Initializes a new session, like -ts \[name\].]' \
42+  '(-q --quiet)'{-q,--quiet}'[Quiet-mode.]' \
43+  '(-f --filename)'{-f,--filename}'[Filename of textfile to get -sc connection-strings from, line separated.]' \
44+  '(-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).]' \
45   ':hosts:_hosts' \
46   '*:: :->subcmds' \
47   && return 0
48 
49 if (( CURRENT == 1 )); then
50-    _describe -t commands "tmux-cssh command"
51-    return
52+  _describe -t commands "tmux-cssh command"
53+  return
54 fi