tmuxinator initialize pane with multiple commands

amdorra picture amdorra · Dec 22, 2013 · Viewed 8k times · Source

I am using Tmuxinator, and I was wondering is there anyway to initialize a Tmux pane using multiple commands?

Example

panes:
    - vim
    - workon project              #activate virtualenv and ..
      ./manage.py runserver       #run sever

Answer

Soliah picture Soliah · Jan 4, 2014

This is supported from 0.6.6.

name: sample
root: ~/

windows:
  - stats:
    - ssh [email protected]
    - tail -f /var/log/stats.log
  - logs:
    layout: main-vertical
    panes:
      - logs:
        - ssh [email protected]
        - cd /var/logs
        - tail -f development.log

Please refer to https://github.com/aziz/tmuxinator#passing-directly-to-send-keys