I want to use a script to open a tmux session with 6 windows, each in a different directory. I started with a script I found and tried this first:
tmux new-sessi
For thous who don't install ruby tmuxp is available in Python and supports both Teamocil and Tmuxinator style configuration files (in both yaml and json).
Not to mention there is a very sweet library behind it all https://github.com/tony/libtmux
pip install --user tmuxp
add ~/.local/bin/ to your $PATH for python user install programs
-
# ~/.tmuxp/workbench.yaml
session_name: workbench
windows:
- name: workbench
layout: main-vertical
panes:
- vim
- pane
- pane
-
tumxp load workbench