2020-12-03 17:54:50 +08:00
|
|
|
# terminal
|
2021-11-12 01:52:29 +08:00
|
|
|
set -g default-terminal "screen-256color"
|
|
|
|
set -ga terminal-overrides ",alacritty:Tc"
|
|
|
|
set -ga terminal-overrides ",xterm-256color:Tc"
|
2020-12-03 17:54:50 +08:00
|
|
|
|
|
|
|
# vi mode
|
2020-11-05 00:08:48 +08:00
|
|
|
set-window-option -g mode-keys vi
|
2020-12-03 17:54:50 +08:00
|
|
|
|
2020-11-05 00:08:48 +08:00
|
|
|
# remap prefix from 'C-b' to 'C-a'
|
2022-05-10 16:58:15 +08:00
|
|
|
#unbind C-b
|
|
|
|
#set-option -g prefix C-a
|
|
|
|
#bind-key a send-prefix
|
2020-12-03 17:54:50 +08:00
|
|
|
|
|
|
|
# vim binds for pane navigation
|
|
|
|
bind-key h select-pane -L
|
|
|
|
bind-key j select-pane -D
|
|
|
|
bind-key k select-pane -U
|
|
|
|
bind-key l select-pane -R
|
2020-12-16 21:31:40 +08:00
|
|
|
|
|
|
|
# last window similar to screen
|
2022-05-10 18:10:59 +08:00
|
|
|
bind-key b send-prefix
|
|
|
|
bind-key C-b last-window
|