-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
36 lines (29 loc) · 1005 Bytes
/
.tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# @lesolski 2022 tmux settings
# reload config file on R key - like i3wm
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded."
# general preferences
set -g default-shell /bin/zsh
set -g default-terminal "xterm-256color"
set status-utf8 on
set utf8 on
set -g mouse on # allow scroll and mouse in tmux
# set prefix to ctrl+a
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# window reindexing
set -g base-index 1 # start index at 1 for easier switching by numbers - zero is too far away on keyboard
set -g renumber-windows on
# status bar colors
set -g status-bg black
set -g status-fg white
# hjkl pane navigation - `-r` stands for repeating so it allows to 500ms(default) to switch multiple panes
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
# hjkl pane resizing
bind-key -r C-k resize-pane -U -x 2
bind-key -r C-j resize-pane -D -x 2
bind-key -r C-h resize-pane -L 10
bind-key -r C-l resize-pane -R 10