How to start TMUX with a given number of panels and dimensions
Is there a way to run tmux with a fixed number of panels open and a predefined size? What I mean is that whenever I do this in my terminal:
$ tmux
It will open a session with 4 panes and each with my preferred size, which looks like this:
I'm not sure how to do this in ~/.tmux.conf
source to share
tmuxinator ( https://github.com/tmuxinator/tmuxinator ) allows you to pre-define your session (window, panel ... etc) in a config file, and start tmux with that config.
I wrote a tool: retmux ( https://github.com/sk1418/retmux ), has similar functionality. Instead of editing your config file with retmux you can just make your panel (with layout) / window / path setting in your tmux, when you are happy with your current session, do retmux -b [name]
retmux will save a backup (config) for your sessions, next time when you want to restore this session (s) just retmux -r [name]
check the project page details.
source to share