Akom's Tech Ruminations

Various tech outbursts - code and solutions to practical problems

Bash completion for tmux multi-window like cssh/mssh

Posted by Admin • Monday, May 19. 2014

Although I normally use mssh for my multi-window SSH client, sometimes I work through an non-graphical SSH connection, and tmux really comes in handy. I've been using the ssh-multi script by D.Kovalov, but since I already have "clusters" files for cssh and mssh, I figured that it should be more convenient to use them by typing aliases. The script below is the result. )

This goes into /etc/bash_completion.d/tmuxmulti

Hope it helps

Synchronized multi-window in action
It relies on ~/.mssh_clusters (see mssh for more info)
The format is simply:
my-group-of-boxes-1: host1 host2 host3 my-group-of-boxes-2: host4 host5 host6
(and so on)

Get the source from GitHub: https://gist.github.com/akomakom/2dab995b6a48899eee841cc0e4a3192e

0 Trackbacks

  1. No Trackbacks

0 Comments

Display comments as (Linear | Threaded)
  1. No comments

Add Comment


Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
You can use [geshi lang=lang_name [,ln={y|n}]][/geshi] tags to embed source code snippets.
Standard emoticons like :-) and ;-) are converted to images.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA 1CAPTCHA 2CAPTCHA 3CAPTCHA 4CAPTCHA 5


What is the primary language of this blog? (Anti-SPAM question)
Markdown format allowed


Submitted comments will be subject to moderation before being displayed.