Skip to content

Instantly share code, notes, and snippets.

@serkanh
Created April 7, 2016 15:47
Show Gist options
  • Save serkanh/d5763fb35fb150aca61197d3f5c02f7d to your computer and use it in GitHub Desktop.
Save serkanh/d5763fb35fb150aca61197d3f5c02f7d to your computer and use it in GitHub Desktop.
tmuxinator
# ~/.tmuxinator/test.yml
name: blackbook
root: /Users/shaytac/hearst/Track2/
# Optional tmux socket
# socket_name: foo
# Runs before everything. Use it to start daemons etc.
# pre: sudo /etc/rc.d/mysqld start
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
# pre_window: rbenv shell 2.0.0-p247
#pre_window: cleanNames
# Pass command line options to tmux. Useful for specifying a different tmux.conf.
# tmux_options: -f ~/.tmux.mac.conf
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
# tmux_command: byobu
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
# startup_window: logs
# Controls whether the tmux session should be attached to automatically. Defaults to true.
# attach: false
# Runs after everything. Use it to attach to tmux with custom options etc.
# post: tmux -CC attach -t test
windows:
- logs:
layout: main-vertical
panes:
- db:
- eval $(docker-machine env dev) && cleanNames && cd ./db && ./db
- provisioning:
- cleanNames && cd ./provisioning && ./dev npm install && ./run
- api:
- cleanNames && cd ./api && ./dev npm install && ./run
- credit:
- cleanNames && cd ./credit && ./dev npm install && ./run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment