When we do C+a or whatever key binding is and followed by "
or %
then tmux split this pane into horizontally or vertically.
What I want is whenever I press C+a+% or C+a+" then it should execute some command.
e.g. C+a+% should split the pane and execute command ls
and C+a+" should split the pane and execute the command ls
in the same pane.
You can assume always I want to execute the same command e.g ls
.
How to achieve this in tmux using tmux.conf file?