Skip to content

Instantly share code, notes, and snippets.

@rrichards
Forked from dpickett/tmux_textaurant.sh
Created February 16, 2011 22:12
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 rrichards/830371 to your computer and use it in GitHub Desktop.
Save rrichards/830371 to your computer and use it in GitHub Desktop.
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