-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf.2.7
86 lines (67 loc) · 2.47 KB
/
.tmux.conf.2.7
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
# Configuration for tmux (terminal multiplexer) v2.7
# Set terminal type for proper color support
set -g default-terminal "xterm-256color"
# Lower escape timing from 500ms to 0ms for faster response to scroll-buffer access
set -sg escape-time 0
# Disabling visual or audible bell
set-option -g bell-action none
set-option -g visual-bell off
# Set command history limit
set-option -g history-limit 5000
# Change the prefix key, C-a is easier to reach than the default C-b
unbind-key C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Start indexing windows and panes from 1 instead of 0
set -g base-index 1
setw -g pane-base-index 1
# Use alt + arrow keys to switch between panes
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
# Use ctrl + alt + arrow keys to switch between windows
bind -n C-M-h previous-window
bind -n C-M-l next-window
# Use vi mode for command-line and status-line
setw -g mode-keys vi
set -g status-keys vi
# Bind 'v' to split windows horizontally and 'h' to split windows vertically
bind-key v split-window -h
bind-key h split-window -v
# Define resize pane binds
bind -r C-j resize-pane -D 10
bind -r C-k resize-pane -U 10
bind -r C-h resize-pane -L 10
bind -r C-l resize-pane -R 10
# Set pane border styles
set -g pane-border-format ' #T '
set -g pane-border-fg colour255
set -g pane-border-bg colour234
set -g pane-active-border-fg colour0
set -g pane-active-border-bg colour255
# Set status bar styles
set -g status-bg colour234
set -g status-fg colour137
set -g status-attr dim
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour241,bold] %y-%m-%d #[fg=colour233,bg=colour245,bold] %H:%M:%S '
# Set window status styles
setw -g window-status-current-fg colour81
setw -g window-status-current-attr bold
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
setw -g window-status-fg colour138
setw -g window-status-bg colour235
setw -g window-status-attr none
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
setw -g window-status-bell-attr bold
setw -g window-status-bell-fg colour255
setw -g window-status-bell-bg colour1
# Set message styles
set -g message-attr bold
set -g message-fg colour232
set -g message-bg colour166
# Bind 'r' to easily reload tmux configuration
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf RELOADED."
# For persistent tmux sessions
run-shell ~/repos/tmux-resurrect/resurrect.tmux