teamocil/README.mkd

48 lines
1.5 KiB
Markdown
Raw Normal View History

2011-02-05 18:14:40 +00:00
# Introduction
2011-02-05 18:11:38 +00:00
2011-07-19 12:42:56 +00:00
Teamocil is a tool used to automatically create sessions, windows and splits in `tmux` with Ruby and YAML. Like [tmuxinator](https://github.com/aziz/tmuxinator), but with splits, not just windows.
2011-02-05 18:11:38 +00:00
# Usage
2011-02-05 18:16:55 +00:00
$ gem install teamocil
2011-02-05 18:14:40 +00:00
$ mkdir ~/.teamocil
$ touch ~/.teamocil/sample.yml
$ tmux
2011-02-05 18:11:38 +00:00
$ teamocil sample
2011-07-19 12:42:56 +00:00
# Options
* `--here` opens the session from the current window, it doesnt create an empty first window.
* `--layout` takes a custom file path to a YAML layout file.
2011-02-05 18:11:38 +00:00
# Layout example
# ~/.teamocil/sample.yml
2011-02-18 03:12:39 +00:00
session:
name: sample-session
windows:
- name: sample-window
splits:
- cmd: cd ~/Code/sample/www
- cmd:
- cd ~/Code/sample/www
- rails s
width: 50
- cmd: memcached -p 11211 -vv
height: 25
2011-02-05 18:11:38 +00:00
2011-07-19 12:42:56 +00:00
Running `$ teamocil sample` will rename the session to `sample-session` and create a new window named `sample-window` with a layout like this:
2011-02-05 18:11:38 +00:00
.------------------.------------------.
| (0) | (1) |
| | |
| | |
| | |
| | |
| | |
| |------------------|
| | (2) |
| | |
'------------------'------------------'