Skip to content

Instantly share code, notes, and snippets.

View rpetti's full-sized avatar

Rob Petti rpetti

View GitHub Profile
@rpetti
rpetti / gist:bb52815d55e7b4023cbcf301589e2ef8
Created February 28, 2025 01:31
tmux alternating split window
# 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'