Created
October 9, 2017 08:35
-
-
Save sillykelvin/b710f6bb5fe6337c469f7df065a9b0a7 to your computer and use it in GitHub Desktop.
A tmux script to restore work environment quickly after reboot
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/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