tmux: change prefix to C-s, add C-n/C-p window nav
This commit is contained in:
parent
1c63057b73
commit
1c88d55512
1 changed files with 9 additions and 4 deletions
|
|
@ -5,10 +5,10 @@
|
||||||
# General Settings
|
# General Settings
|
||||||
# ─────────────────────────────────────────────────────────────
|
# ─────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
# Change prefix from C-b to C-a (easier to reach)
|
# Change prefix from C-b to C-s
|
||||||
unbind C-b
|
unbind C-b
|
||||||
set -g prefix C-a
|
set -g prefix C-s
|
||||||
bind C-a send-prefix
|
bind C-s send-prefix
|
||||||
|
|
||||||
# Enable true color support
|
# Enable true color support
|
||||||
set -g default-terminal "tmux-256color"
|
set -g default-terminal "tmux-256color"
|
||||||
|
|
@ -62,13 +62,18 @@ bind -r L resize-pane -R 5
|
||||||
# New window in current path
|
# New window in current path
|
||||||
bind c new-window -c "#{pane_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-1 select-window -t 1
|
||||||
bind -n M-2 select-window -t 2
|
bind -n M-2 select-window -t 2
|
||||||
bind -n M-3 select-window -t 3
|
bind -n M-3 select-window -t 3
|
||||||
bind -n M-4 select-window -t 4
|
bind -n M-4 select-window -t 4
|
||||||
bind -n M-5 select-window -t 5
|
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
|
# Catppuccin Macchiato Colors
|
||||||
# ─────────────────────────────────────────────────────────────
|
# ─────────────────────────────────────────────────────────────
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue