Normally I have to create a new horizontal pane with Ctrl + b + _ and then resize it down with Ctrl + b + J

How can I configure tmux to do this with just one command?


It turns out I can bind 1 shortcut to do 2 commands separated by \;

bind + split-window -v -c "#{pane_current _path}"\; resize-pane -D 20

Edit: Thank to Meuh's help, now it looks like this

bind + split-window -v -p 20
  • 2
    Note, you can specify a percentage size for the new pane with option -p 20 to the split-window command. – meuh Jan 20 '20 at 8:57
  • That's great, thank you – Tai Nguyen Jan 21 '20 at 16:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.