diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 40293937..cbab9ad5 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -13,6 +13,10 @@ 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 h split-window -v -c "#{pane_current_path}" bind v split-window -h -c "#{pane_current_path}" bind x kill-pane