-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
123 lines (93 loc) · 3.53 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#set -g utf8
#set-window-option -g utf8 on
#set -g status-utf8 on
#set -g default-terminal "screen-256color"
#set -as terminal-overrides ',xterm*:sitm=\E[3m'
set -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
set-window-option -g xterm-keys on
setw -g monitor-activity on
set -g visual-activity on
# Change the default input delay in order to improve Vim
# performance.
set -s escape-time 0
#set -sg escape-time 1
# Number windows and panes starting at 1 so that we can jump to
# them easier.
#set -g base-index 1
#set -g pane-base-index 1
# vi mode.
#set -g mode-keys vi
#set -g status-keys vi
# Reload .tmux.conf with "r".
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# increase scrollback buffer size
set -g history-limit 50000
# tmux messages are displayed for 4 seconds
set -g display-time 4000
# super useful when using "grouped sessions" and multi-monitor setup
setw -g aggressive-resize on
# Select panes with vi-style movement commands.
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes with vi-style movement commands.
#bind -r H resize-pane -L 5
#bind -r J resize-pane -D 5
#bind -r K resize-pane -U 5
#bind -r L resize-pane -R 5
# Repeat time
set -g repeat-time 0
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
# Enable the mouse
set -g mouse on
# ----------------------
# set some pretty colors
# ----------------------
# set pane colors - hilight the active pane
set-option -g pane-border-fg colour235 #base02
set-option -g pane-active-border-fg colour240 #base01
# colorize messages in the command line
set-option -g message-bg black #base02
set-option -g message-fg brightred #orange
# ----------------------
# Status Bar
# -----------------------
set-option -g status on # turn the status bar on
#set -g status-utf8 on # set utf-8 for the status bar
set -g status-interval 5 # set update frequencey (default 15 seconds)
set -g status-justify left # center window list for clarity
# set-option -g status-position top # position the status bar at top of screen
# visual notification of activity in other windows
setw -g monitor-activity on
set -g visual-activity on
# set color for status bar
set-option -g status-bg colour235 #base02
set-option -g status-fg yellow #yellow
set-option -g status-attr dim
# set window list colors - red for active and cyan for inactive
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg colour235
set-window-option -g window-status-attr dim
set-window-option -g window-status-format " #I: #W "
set-window-option -g window-status-current-fg brightwhite
set-window-option -g window-status-current-bg colour236
set-window-option -g window-status-current-attr dim
set-window-option -g window-status-current-format "#[fg=green,bg=colour235,dim]#[fg=green,bg=colour235] #I: #W #[fg=green]#[bg=colour235]"
set -g status-left-length 70
set -g status-left-bg colour235
set -g status-left "#S #[fg=green]| #h | "
# show session name, window & pane number, date and time on right side of
# status bar
set -g status-right-length 60
set -g status-right "#{prefix_highlight} | #[fg=blue]#S #I:#P #[fg=yellow]| %d %b %Y #[fg=green]| %l:%M %p | #(date -u | awk '{print $4}')|"
set -s escape-time 50
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
run '~/.tmux/plugins/tpm/tpm'
# vim: ft=conf: