Skip to content

Instantly share code, notes, and snippets.

@sillykelvin
Created October 9, 2017 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sillykelvin/b710f6bb5fe6337c469f7df065a9b0a7 to your computer and use it in GitHub Desktop.
Save sillykelvin/b710f6bb5fe6337c469f7df065a9b0a7 to your computer and use it in GitHub Desktop.
A tmux script to restore work environment quickly after reboot
#!/bin/sh
tmux new-session -d -s dev -n fkgfw 'sslocal -v -c own.conf'
tmux new-window -n src -c '/data/project/src'
tmux new-window -n dist -c '/data/project/dist'
tmux new-window -n build -c '/data/project/src/build'
tmux new-window -n tmp -c '/home/kelvin/tmp'
tmux new-window -n vm1 'ssh ubuntu@192.168.2.101'
tmux new-window -n vm2 'ssh ubuntu@192.168.2.102'
tmux new-window -n vm3 'ssh ubuntu@192.168.2.103'
tmux new-window -n music 'musicbox'
tmux select-window -t src
tmux -2 attach-session -t dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment