Last active
October 6, 2017 13:15
-
-
Save lightcode/53bbf5d6bc27151da5fa02177dfa8039 to your computer and use it in GitHub Desktop.
Open ssh N-time in tmux and enable synchronous panes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
first=$1 | |
shift | |
for e in $@; do | |
tmux split-window ssh $e | |
done | |
tmux set-window-option synchronize-panes on | |
tmux select-layout even-vertical | |
exec ssh $first |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment