mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 17:23:35 +01:00
[tmux-cssh plugin] Initial version
This commit is contained in:
parent
df5b09e20b
commit
b7fcdc7364
25
plugins/tmux-cssh/_tmux-cssh
Normal file
25
plugins/tmux-cssh/_tmux-cssh
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user