Skip to content

Instantly share code, notes, and snippets.

@smat
Created November 4, 2011 14:26
Show Gist options
  • Select an option

  • Save smat/1339428 to your computer and use it in GitHub Desktop.

Select an option

Save smat/1339428 to your computer and use it in GitHub Desktop.
Dualscreen display for two or more ssh hosts
#!/bin/sh
tmux new-session -d -s miniapp -n 'Miniapp' 'ssh host1'
tmux split-window -t miniapp 'ssh host2'
#tmux split-window -t miniapp 'ssh host3'
tmux select-layout -t miniapp even-vertical
tmux set-window-option -t miniapp synchronize-panes on
tmux -2 attach-session -t miniapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment