diff --git a/.tmux.conf b/.tmux.conf index ce26f46..807c2cd 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -6,11 +6,23 @@ set -g prefix C-s bind C-s send-prefix bind C-w send-keys C-w +# Create new session +bind C new-session + +# Kill session +bind X confirm-before -p "kill-session #S? (y/n)" kill-session + +# More intuitive split commands +bind | split-window -h -c "#{pane_current_path}" +bind - split-window -v -c "#{pane_current_path}" + set -g mouse on # act like vim setw -g mode-keys vi +set -g focus-events on + # Start windows and panes at 1, not 0 set -g base-index 1 set -g pane-base-index 1