create tmux.conf

This commit is contained in:
Patryk Koreń
2024-04-18 10:26:26 +02:00
committed by Patryk Koren
parent e6716db162
commit c31f64b2cd

20
.config/tmux/tmux.conf Normal file
View File

@@ -0,0 +1,20 @@
set -ga terminal-overrides ",screen-256color*:Tc"
set-option -g default-terminal "screen-256color"
set -s escape-time 0
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set -g status-style 'bg=#98971a fg=#1d2021'
set -g mouse on
set-window-option -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# vim-like pane switching
bind -r ^ last-window
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R