X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/d8849ea6ef114f897b0c8be1864951891c1047f2..8535868b0c65d8c68e8be1c91c5b5e6319d69dad:/tmux/tmux.conf diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 45283b9..e74bcb1 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -3,8 +3,14 @@ set -g default-terminal "tmux-256color" set -ag terminal-overrides ",xterm-kitty:Tc" set -g set-titles on +set -g mouse set -g mode-keys vi +# Start windows and panes at 1, not 0 +set -g base-index 1 +setw -g pane-base-index 1 +bind-key 0 select-window -t 10 + bind-key Escape copy-mode unbind-key p bind-key p paste-buffer @@ -13,10 +19,6 @@ bind-key -T copy-mode-vi 'y' send-keys -X copy-selection bind-key -T copy-mode-vi 'Space' send-keys -X halfpage-down bind-key -T copy-mode-vi 'Bspace' send-keys -X halfpage-up -# extra commands for interacting with the ICCCM clipboard -bind-key C-c run "tmux save-buffer - | xclip -i -sel clipboard" -bind-key C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer" - # easy-to-remember split pane commands bind-key | split-window -h bind-key - split-window -v