M HYPE SPLASH
// updates

How to open new Tmux pane horizontally with 20% tall?

By Abigail Rogers

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?

1 Answer

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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