dotfiles

My opinionated dotfiles
git clone git://git.erethon.com/dotfiles
Log | Files | Refs

ssh-multi (303B)


      1 if [ $# -gt 0 ]; then
      2     HOSTS=$(cat $1)
      3 fi
      4 
      5 # Use $2 to pass arguments to SSH, e.g., "-o StrictHostKeyChecking=no"
      6 for host in $HOSTS; do
      7     tmux split-window -h "ssh $2 $host"
      8     tmux select-layout tiled > /dev/null
      9 done
     10 
     11 tmux set-window-option synchronize-panes on > /dev/null
     12 tmux kill-pane -t 1