Skip to content

Instantly share code, notes, and snippets.

@joakimk
Created April 7, 2012 13:23
Show Gist options
  • Save joakimk/2328857 to your computer and use it in GitHub Desktop.
Save joakimk/2328857 to your computer and use it in GitHub Desktop.
Teamocil example, opens two windows, and focuses the first with an editor that takes up 75% of the window
session:
name: "app"
windows:
- name: "app-name"
root: ~/Projects/app
splits:
- cmd: "clear"
- cmd: "clear; vim"
width: 75
- name: "console"
root: ~/Projects/app
filters:
after: 'tmux selectw -t 1'
splits:
- cmd: 'clear; git status'
rvm use system
sudo gem install teamocil

alias to="teamocil --here"
# put app.yml in ~/.teamocil

Usage:

tmux
to app
@joakimk
Copy link
Author

joakimk commented Apr 7, 2012

Better to use the app name for the first tab so you can quickly see in which session you are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment