tmux: change prefix to C-s, add C-n/C-p window nav

This commit is contained in:
Bastian Gruber 2026-01-28 18:02:15 +00:00
parent 1c63057b73
commit 1c88d55512
Signed by: gruberb
GPG key ID: 426AF1CBA0530691

View file

@ -5,10 +5,10 @@
# General Settings
# ─────────────────────────────────────────────────────────────
# Change prefix from C-b to C-a (easier to reach)
# Change prefix from C-b to C-s
unbind C-b
set -g prefix C-a
bind C-a send-prefix
set -g prefix C-s
bind C-s send-prefix
# Enable true color support
set -g default-terminal "tmux-256color"
@ -62,13 +62,18 @@ bind -r L resize-pane -R 5
# New window in current path
bind c new-window -c "#{pane_current_path}"
# Quick window switching
# Quick window switching (no prefix needed)
bind -n C-n next-window
bind -n C-p previous-window
bind -n M-1 select-window -t 1
bind -n M-2 select-window -t 2
bind -n M-3 select-window -t 3
bind -n M-4 select-window -t 4
bind -n M-5 select-window -t 5
# Close window
bind x confirm-before -p "Kill window #W? (y/n)" kill-window
# ─────────────────────────────────────────────────────────────
# Catppuccin Macchiato Colors
# ─────────────────────────────────────────────────────────────