my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.1 KiB

3 years ago
  1. #compdef tmux-cssh
  2. # tmux-cssh autocompletion for oh-my-zsh
  3. # Requires: tmux-cssh installed
  4. # Author: Manfred Touron (@moul)
  5. _arguments \
  6. '(-h --help)'{-h,--help}'[This help.]' \
  7. '(-u --user)'{-u,--user}'[User to use.]' \
  8. '(-c --certificate)'{-c,--certificate}'[Path to ssh-certificate to use.]' \
  9. '(-sc --ssh)'{-sc,--ssh}'[SSH-connection-string, multiple.]' \
  10. '(-sa --ssh)'{-sa,--ssh}'[SSH connection arguments, used on every session.]' \
  11. '(-ts --tmux)'{-ts,--tmux}'[Alternative tmux-session-name, default: tmux-cssh]' \
  12. '(-ns --new)'{-ns,--new}'[Initializes a new session, like -ts \[name\].]' \
  13. '(-q --quiet)'{-q,--quiet}'[Quiet-mode.]' \
  14. '(-f --filename)'{-f,--filename}'[Filename of textfile to get -sc connection-strings from, line separated.]' \
  15. '(-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).]' \
  16. ':hosts:_hosts' \
  17. '*:: :->subcmds' \
  18. && return 0
  19. if (( CURRENT == 1 )); then
  20. _describe -t commands "tmux-cssh command"
  21. return
  22. fi