Skip to content

Instantly share code, notes, and snippets.

@toastdriven
Created October 9, 2009 05:30
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save toastdriven/205736 to your computer and use it in GitHub Desktop.
Save toastdriven/205736 to your computer and use it in GitHub Desktop.
haystack.sh
#!/bin/sh
# First, open up GitX
cd ~/Code/Python/django-haystack; gitx
tmux start-server
tmux new-session -d -s Haystack -n git
tmux new-window -tHaystack:1 -n test
tmux new-window -tHaystack:2 -n solr
tmux new-window -tHaystack:3 -n docs
tmux new-window -tHaystack:4 -n runserver
tmux new-window -tHaystack:5 -n utility
tmux send-keys -tHaystack:0 'cd ~/Code/Python/django-haystack; clear' C-m
tmux send-keys -tHaystack:1 'cd ~/Code/Python/django-haystack/tests/; export PYTHONPATH=`pwd`; clear' C-m
tmux send-keys -tHaystack:2 'cd ~/Code/Python/all_django_projects/ds_recipe_testbed/my-solr; clear; ./run-solr.sh' C-m
tmux send-keys -tHaystack:3 'cd ~/Code/Python/django-haystack/docs; clear' C-m
tmux send-keys -tHaystack:4 'cd ~/Code/Python/all_django_projects/ds_recipe_testbed; clear; ./manage.py runserver' C-m
tmux send-keys -tHaystack:5 'cd ~/Code/Python/all_django_projects/ds_recipe_testbed; clear' C-m
tmux select-window -tHaystack:0
tmux attach-session -d -tHaystack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment