Search code examples
tmuxtmuxinator

tmuxinator initialize pane with multiple commands


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

Solution

  • 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