Skip to content

Instantly share code, notes, and snippets.

@lightcode
Last active October 6, 2017 13:15
Show Gist options
  • Save lightcode/53bbf5d6bc27151da5fa02177dfa8039 to your computer and use it in GitHub Desktop.
Save lightcode/53bbf5d6bc27151da5fa02177dfa8039 to your computer and use it in GitHub Desktop.
Open ssh N-time in tmux and enable synchronous panes
#!/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