Created
December 4, 2012 14:42
-
-
Save aki017/4204643 to your computer and use it in GitHub Desktop.
一括で複数ホストにするやつ
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 | |
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