Skip to content

Instantly share code, notes, and snippets.

@mikeyp
Created October 30, 2024 23:57
Show Gist options
  • Save mikeyp/3853847ad15beae2d761e85e26165a7e to your computer and use it in GitHub Desktop.
Save mikeyp/3853847ad15beae2d761e85e26165a7e to your computer and use it in GitHub Desktop.
# /Users/mdp/.config/tmuxinator/project-name.yml
name: project-name
root: ~/projects/project-directory
# Runs on project start, always
on_project_start: docker-compose --env-file ./database/.env up -d
# Run on project stop
on_project_stop: docker-compose --env-file ./database/.env stop
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
pre_window: fnm install
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
startup_window: editor
# Controls whether the tmux session should be attached to automatically. Defaults to true.
attach: true
windows:
- editor: nvim
- server: ./script/run/dev.sh
- app-console: ./script/app/console
- db-console:
root: ~/projects/project-directory/database
panes:
- psql -U community -p5435 -h 127.0.0.1 database_name
- shell:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment