Can I configure tmux so it will after running tmux automatically opens two windows named src and cmd? I always type after starting it:
prefix + c, prefix + ,srcENTER
prefix + c, prefix + ,cmdENTER
I'd like to automate this.
In your particular case the following would do:
A more general way would be to use the
Where FILE_WITH_TMUX_COMMANDS might contain:
I'd similar need, But different.
I runs three sessions, each having different set of windows (programs) running on it.
If its adapted to your case, then
Well, this is a bit verbose, but you see how you can expand this in future to suite your evolving needs.
If you're interested, my dotFiles are hosted on github.
There's a supplemental tool called tmuxinator (found at https://github.com/aziz/tmuxinator ) that allows you to do this. I would suggest checking it out.