tmuxssh tiled ssh (like clusterssh)
This commit is contained in:
1
bin/tmuxssh
Symbolic link
1
bin/tmuxssh
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../tmuxssh
|
||||||
17
tmuxssh
Executable file
17
tmuxssh
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
HOSTS=( vm3 vm4 vm5 vm6 vm7 vm8 vm9 vm10 )
|
||||||
|
|
||||||
|
tmux new-session -d -s ssh$USER 'ssh '$1
|
||||||
|
tmux set-window-option -t:0 synchronize-panes on
|
||||||
|
tmux bind-key m setw synchronize-panes
|
||||||
|
tmux rename-window 'VMS'
|
||||||
|
for (( i=2; i<=$#; i++ ))
|
||||||
|
do tmux split-window -h 'ssh '${!i}
|
||||||
|
tmux select-layout tiled
|
||||||
|
done
|
||||||
|
|
||||||
|
tmux -2 attach-session -t ssh$USER
|
||||||
|
|
||||||
|
echo "ctrl-b m to toggle pane synchronization"
|
||||||
|
echo "ctrl-b arrows to move between tiles"
|
||||||
Reference in New Issue
Block a user