forked from 2KAbhishek/dots2k
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
88 lines (64 loc) · 1.85 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Powerline
source /usr/lib/python3.8/site-packages/powerline/bindings/tmux/powerline.conf
# Set the default terminal mode to 256color mode
set -g default-terminal "screen-256color"
# Change prefix
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Reload config
bind r source-file ~/.tmux.conf \; \
display-message "Config Reloaded."
# Reduce delay
set -s escape-time 1
# Window and pane index form 1
set -g base-index 1
setw -g pane-base-index 1
# Split panes using | and -
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %
# Switch panes using Alt-arrow without prefix
bind h select-pane -L
bind l select-pane -R
bind k select-pane -U
bind j select-pane -D
# Quick window selection
bind -r p previous-window
bind -r n next-window
# Resizing panes with Prefix H,J,K,L
bind -r H resize-pane -L 5
bind -r L resize-pane -R 5
bind -r K resize-pane -U 5
bind -r J resize-pane -D 5
# Shortcut for synchronize-panes toggle
bind C-s set-window-option synchronize-panes
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
# Enable activity alerts
setw -g monitor-activity on
set -g visual-activity on
# Enable vi keys.
setw -g mode-keys vi
# Colors for pane borders
setw -g pane-border-style fg=black
# Set colors for the active window
# setw -g window-status-current-style fg=blue,bg=white
# Message line
setw -g message-style fg=white,bold,bg=black
# Remove switching delay
set-option -s escape-time 0
# Increase scrollback buffer size
set-option -g history-limit 50000
# Increase message display timeout
set-option -g display-time 1500
# Enable focus events
set-option -g focus-events
# Enable aggresive resize
set-window-option -g aggressive-resize on
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Run tpm
run -b '~/.tmux/plugins/tpm/tpm'