add keybinds for faster switching between windows

This commit is contained in:
2023-06-06 12:37:01 -04:00
parent a3ee7995de
commit 38fb03be7a
+6
View File
@@ -3,6 +3,8 @@
set -g escape-time 0 set -g escape-time 0
set -g default-terminal "screen-256color" set -g default-terminal "screen-256color"
set -g history-limit 50000 set -g history-limit 50000
set -g display-time 3000
set -g status-interval 5
# Start indexes at 1 instead of 0 # Start indexes at 1 instead of 0
set -g base-index 1 set -g base-index 1
@@ -17,6 +19,10 @@ set -g prefix C-a
unbind C-b unbind C-b
bind-key C-a send-prefix bind-key C-a send-prefix
# Ctrl+A, then Ctrl+C, p/n to cycle windows (faster, can just hold ctrl)
bind C-p previous-window
bind C-n next-window
# Split windows with | and - # Split windows with | and -
unbind % unbind %
bind | split-window -h bind | split-window -h