From c31f64b2cd43ef98bbe1c3e916d6a625254b3777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Kore=C5=84?= Date: Thu, 18 Apr 2024 10:26:26 +0200 Subject: [PATCH] create tmux.conf --- .config/tmux/tmux.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .config/tmux/tmux.conf diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf new file mode 100644 index 0000000..d239eb9 --- /dev/null +++ b/.config/tmux/tmux.conf @@ -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