Skip to content

Instantly share code, notes, and snippets.

@erikzaadi
Created April 4, 2012 07:16
Show Gist options
  • Save erikzaadi/2299433 to your computer and use it in GitHub Desktop.
Save erikzaadi/2299433 to your computer and use it in GitHub Desktop.
Tmuxinator Project
# ~/.tmuxinator/project.yml
# you can make as many tabs as you wish...
project_name: Guybrush
project_root: /path/to/code
pre: #you can fire up db or env initializations here
tabs:
- editor:
layout: main-vertical
panes:
- vim -c "autocmd BufWritePost test*.py silent \!tmux send -t Guybrush:editor.2 \"C-l\" \"./manage.py test django_app_name\" \"Enter\""
# here be dragons, for this vim instance, any write to test*.py will send a tmux command to the test pane, triggering the test
# There's no --watch for nose #sadface
- git status #my zsh pane, initially display git status to get a fast grip
- sleep 2 && cd path/to/django && ./manage.py test repo #the sleep is to wait for mongo to wake up
- sleep 2 && cd path/to/django && ./manage.py shell #REPL FTW
- ssh-server: ssh project-dev
- logs:
layout: even-vertical
panes:
- cd /long/path/to/db/mongo/mongodb-linux-i686-2.0.2/bin/ && ./mongod
- sleep 2 && cd path/to/django && ./manage.py runserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment