Simpler additional tmux splits

This commit is contained in:
David Heinemeier Hansson
2026-05-15 13:37:53 +02:00
parent 883c6a6267
commit 2f56b525c6
2 changed files with 16 additions and 25 deletions
+2 -4
View File
@@ -13,10 +13,8 @@ bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-selection-and-cancel
# Pane Controls
bind -n M-Enter run-shell \
"[[ $(tmux list-panes | wc -l) -eq 1 ]] && \
tmux splitw -h -c '#{pane_current_path}' || \
tmux splitw -v -c '#{pane_current_path}'"
bind -n M-Enter split-window -v -c "#{pane_current_path}"
bind -n M-S-Enter split-window -h -c "#{pane_current_path}"
bind h split-window -v -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
bind x kill-pane