Skip to content

Instantly share code, notes, and snippets.

@aki017
Created December 4, 2012 14:42
Show Gist options
  • Save aki017/4204643 to your computer and use it in GitHub Desktop.
Save aki017/4204643 to your computer and use it in GitHub Desktop.
一括で複数ホストにするやつ
#!/bin/bash
tmux start-server
tmux new-session -d -n tmux-ssh-window -s tmux-ssh
for i in ここにスペース区切りでホストを並べる
do
tmux split-window -h -t tmux-ssh-window
tmux send-keys "ssh $i" C-m
tmux select-layout -t tmux-ssh-window main-horizontal
done
tmux select-pane -t 0
tmux set-window-option synchronize-panes on
tmux attach-session -t tmux-ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment