Created
February 28, 2025 01:31
-
-
Save rpetti/bb52815d55e7b4023cbcf301589e2ef8 to your computer and use it in GitHub Desktop.
tmux alternating split window
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ctrl+b, enter: automatically splits window either vertically or horizontally based on current dimensions | |
bind-key Enter run-shell '[ $(expr #{pane_height} \* 25 / #{pane_width}) -gt 10 ] && tmux split-window -v || tmux split-window -h' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment