Created
October 8, 2014 22:25
-
-
Save joemsak/d83e1671f3082c6ee8a3 to your computer and use it in GitHub Desktop.
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
tmux has-session -t jamby | |
if [ $? != 0 ] | |
then | |
tmux new-session -s jamby -n editor -d | |
tmux send-keys -t jamby 'cd ~/work/jamby' C-m | |
tmux send-keys -t jamby 'vim' C-m | |
tmux new-window -n server -t jamby | |
tmux send-keys -t jamby:2 'cd ~/work/jamby' C-m | |
tmux send-keys -t jamby:2 'git pull' C-m | |
tmux send-keys -t jamby:2 'bundle' C-m | |
tmux send-keys -t jamby:2 'rake db:migrate' C-m | |
tmux send-keys -t jamby:2 'rails s' C-m | |
tmux new-window -n git -t jamby | |
tmux send-keys -t jamby:3 'cd ~/work/jamby' C-m | |
tmux select-window -t jamby:1 | |
fi | |
tmux attach -t jamby |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment