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
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
For particular using with
virtualenv
and if you don't want to includeworkon project &&
in every line, you can usepre_window
, available from 0.6.0:pre_window: workon project
Now before running any command, a
workon project
would be called first, allow you to have every new window in virtual environment.you could put
&&
between commands.This is supported from 0.6.6.
Please refer to https://github.com/aziz/tmuxinator#passing-directly-to-send-keys