Created
April 8, 2011 16:23
-
-
Save jefftriplett/910213 to your computer and use it in GitHub Desktop.
project_name.sh
This file contains hidden or 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 | |
# First, open up GitX | |
# cd ~/Code/Python/django-haystack; gitx | |
tmux start-server | |
tmux new-session -d -s ProjectName -n git | |
tmux new-window -tProjectName:1 -n test | |
tmux new-window -tProjectName:2 -n solr | |
tmux new-window -tProjectName:3 -n runserver | |
tmux new-window -tProjectName:4 -n utility | |
tmux send-keys -tProjectName:0 'workon project_name; cd src/project_name-git' C-m | |
tmux send-keys -tProjectName:1 'workon project_name' C-m | |
tmux send-keys -tProjectName:2 'cd /Users/jefftriplett/sites/solr; ./run-solr.sh' C-m | |
tmux send-keys -tProjectName:3 'workon project_name; django-admin.py runserver' C-m | |
tmux send-keys -tProjectName:4 'workon project_name' C-m | |
tmux select-window -tProjectName:0 | |
tmux attach-session -d -tProjectName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment