-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
57 lines (42 loc) · 1.39 KB
/
Copy pathtmux.conf
File metadata and controls
57 lines (42 loc) · 1.39 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# For the avoidance of doubt
set -g prefix ^B
# Improve colors
set -g default-terminal "screen-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
# reload config
unbind r
bind r source-file ~/.config/tmux/tmux.conf
# TMux Plugin Manager (tpm)
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Toolbar
set-option -g status-position top
# Session ergonomics
# Window ergonomics
set -g base-index 1 # Start indexing windows at 1 instead of 0
setw -g pane-base-index 1
set -g renumber-windows on # Renumber windows when any window closes
# Split panes using h and v
bind-key | split-window -h # Vertical split (prefix - |)
bind-key - split-window -v # Horizontal split (prefix - -)
# Enable mouse control
set -g mouse on
# Set vi mode
setw -g mode-keys vi
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# Increase scrollback buffer size
set -g history-limit 100000
# Additional plugins for CPU/Memory monitoring
set -g @plugin 'tmux-plugins/tmux-cpu'
# Set the themes.
#set -g @plugin "arcticicestudio/nord-tmux"
#set -g @plugin 'janoamaral/tokyo-night-tmux'
# Source theme configuration
source-file ~/.config/tmux/themes/current_theme.conf
# Run TPM
run '~/.config/tmux/plugins/tpm/tpm'