Untitled diff

Created Diff never expires
4 removals
14 lines
10 additions
14 lines
multissh() {
multissh() {
local hosts=( $* )
local hosts=( $* )


tmux new-window "ssh ${hosts[0]}"
local win=$( tmux new-window -dP "ssh ${hosts[0]}" )
unset hosts[0]
unset hosts[0]
for i in "${hosts[@]}"; do
for i in "${hosts[@]}"; do
tmux split-window -h "ssh $i"
tmux split-window -ht$win "ssh $i"
tmux select-layout tiled > /dev/null
tmux select-layout -t$win tiled > /dev/null
done
done
tmux select-pane -t 0
tmux select-pane -t $win
tmux set-window-option synchronize-panes on > /dev/null
tmux set-window-option -t $win synchronize-panes on > /dev/null
}
}


## This works in tmux 2.0
## This _only_ works in tmux >=2.1