Created
August 2, 2019 20:28
-
-
Save jamie/0261cdb434674981a43f63c0130fd594 to your computer and use it in GitHub Desktop.
tmuxinator configuration
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
# /.config/tmuxinator/attendease.yml | |
name: attendease | |
root: ~/code/attendease | |
# Optional tmux socket | |
# socket_name: foo | |
# Note that the pre and post options have been deprecated and will be replaced by | |
# project hooks. | |
# Project hooks | |
# Runs on project start, always | |
on_project_start: "vagrant status | grep 'Attendease.*running' >/dev/null || vagrant up" | |
# Run on project start, the first time | |
# on_project_first_start: vagrant up | |
# Run on project start, after the first time | |
# on_project_restart: command | |
# Run on project exit ( detaching from tmux session ) | |
# on_project_exit: command | |
# Run on project stop | |
# on_project_stop: command | |
# 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 | |
# Pass command line options to tmux. Useful for specifying a different tmux.conf. | |
tmux_options: "-f ~/.config/tmux.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: editor | |
# Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used. | |
# startup_pane: 1 | |
# Controls whether the tmux session should be attached to automatically. Defaults to true. | |
# attach: false | |
windows: | |
# - with-panes: | |
# layout: main-horizontal | |
# panes: | |
# - vim | |
# - guard | |
- shell: | |
- vagrant ssh | |
- cd attendease | |
- console: | |
- sleep 1 | |
- vagrant ssh | |
- cd attendease | |
- bundle exec rails console | |
- jobs: | |
- sleep 1 | |
- vagrant ssh | |
- cd attendease | |
- bundle exec rake jobs:work | |
- server: | |
- sleep 3 | |
- vagrant ssh | |
- cd attendease | |
- bundle exec rails server | |
- assets: | |
- yarn fastwatch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment