Skip to content

Instantly share code, notes, and snippets.

@dmerrick
Last active October 16, 2016 00:30
Show Gist options
  • Select an option

  • Save dmerrick/75ba63dbc1e531165155 to your computer and use it in GitHub Desktop.

Select an option

Save dmerrick/75ba63dbc1e531165155 to your computer and use it in GitHub Desktop.
~/.tmuxinator/workspace.yml
# ~/.tmuxinator/workspace.yml
name: workspace
root: ~/
# Optional tmux socket
# socket_name: workspace
# 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.
# pre_window: export IGNOREEOF=5
# Pass command line options to tmux. Useful for specifying a different tmux.conf.
# tmux_options: -f ~/.tmux.mac.conf
windows:
- primary:
# ignore the first few CTRL-Ds (to prevent accidental closing)
pre: export IGNOREEOF=3
# two panes at the top, one big one at the bottom
layout: fa9d,191x90,0,0[191x15,0,0{95x15,0,0,0,95x15,96,0,2},191x74,0,16,3]
panes:
- pane_with_multiple_commands:
- clear
- fortune | cowsay | lolcat
- tmux clock-mode -t %2
- tmux select-pane -t %3; clear
- secondary:
# ignore the first few CTRL-Ds (to prevent accidental closing)
pre: export IGNOREEOF=3
# two panes at the top, one big one at the bottom
layout: fa9d,191x90,0,0[191x15,0,0{95x15,0,0,0,95x15,96,0,2},191x74,0,16,3]
panes:
# update every 24 hours
- watch -t -c -n 86400 "gcalcli --calendar 'Engineering' --calendar 'dana.merrick@grandrounds.com' agenda"
- tmux clock-mode -t %4
- clear
# other examples:
#- server: bundle exec rails s
#- logs: tail -f log/development.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment