Created
December 1, 2010 15:31
-
-
Save dpickett/723637 to your computer and use it in GitHub Desktop.
scripted way to start your work in a Rails project
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
export WORKING_DIR=~/work/textaurant | |
cd $WORKING_DIR; mvim; gitx | |
tmux start-server | |
tmux new-session -d -s Textaurant -n work | |
tmux new-window -tTextaurant:1 -n server | |
tmux new-window -tTextaurant:2 -n test | |
tmux send-keys -tTextaurant:0 'cd $WORKING_DIR' C-m | |
tmux send-keys -tTextaurant:1 'cd $WORKING_DIR && rails s' C-m | |
tmux send-keys -tTextaurant:2 'cd $WORKING_DIR && bundle exec autotest -f' C-m | |
tmux select-window -tTextaurant:0 | |
tmux attach-session -d -tTextaurant |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment