There's no I in Teamocil. At least not where you think. Teamocil helps you set up windows and splits layouts for tmux using YAML configuration files.
Go to file
2011-09-26 08:37:13 -04:00
bin Refactor classes structure and add doc 2011-09-26 08:37:13 -04:00
lib Refactor classes structure and add doc 2011-09-26 08:37:13 -04:00
script Initial commit 2011-02-05 13:11:38 -05:00
test Initial commit 2011-02-05 13:11:38 -05:00
.gitignore Refactor classes structure and add doc 2011-09-26 08:37:13 -04:00
.yardopts Refactor classes structure and add doc 2011-09-26 08:37:13 -04:00
LICENSE Add License 2011-02-05 13:16:23 -05:00
Rakefile Initial commit 2011-02-05 13:11:38 -05:00
README.mkd Add Jimmy Bourassa to contributors 2011-09-25 15:18:27 -04:00
teamocil.gemspec Version bump to 0.1.9 2011-09-25 15:19:05 -04:00

Teamocil

Teamocil is a tool used to automatically create sessions, windows and splits in tmux with Ruby and YAML. Like tmuxinator, but with splits, not just windows.

Usage

$ gem install teamocil
$ mkdir ~/.teamocil
$ touch ~/.teamocil/sample.yml
$ tmux
$ teamocil sample

Options

  • --here opens the session in the current window, it doesnt create an empty first window.
  • --layout takes a custom file path to a YAML layout file.
  • --edit opens the layout file (whether or not --layout is used) with $EDITOR.

Layout example

# ~/.teamocil/sample.yml

session:
  name: sample-session
  windows:
    - name: sample-window
      root: ~/Code/sample/www
      splits:
        - cmd:
          - ls -la
          - git status
        - cmd: rails server --port 3000
          width: 50
        - cmd: memcached -p 11211 -vv
          height: 25
          target: bottom-right

Running $ teamocil sample will rename the session to sample-session and create a new window named sample-window with a layout like this:

.------------------.------------------.
| (0)              | (1)              |
|                  |                  |
|                  |                  |
|                  |                  |
|                  |                  |
|                  |                  |
|                  |------------------|
|                  | (2)              |
|                  |                  |
'------------------'------------------'

Extras

Zsh autocompletion

To get autocompletion when typing teamocil <Tab> in a zsh session, add this line to your ~/.zshrc file:

compctl -g '~/.teamocil/*(:t:r)' teamocil

Contributors

Feel free to contribute and submit pull requests!

License

Teamocil is © 2011 Rémi Prévost and may be freely distributed under the LITL license. See the LICENSE file.