-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
93 lines (69 loc) · 2.58 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
### TMUX Configuration File ###
# Enable mouse support
set -g mouse on
# Enable scrolling
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
# Enable reloading configuration hotkey
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Set default editor
set -g status-keys vi
############################
## Status Bar
############################
# enable UTF-8 support in status bar
set -gq status-utf8 on
# set refresh interval for status bar
set -g status-interval 30
# center the status bar
set -g status-justify centre
# show session, window, pane in left status bar
set -g status-left-length 40
set -g status-left ' #[fg=green]Session: #S [#[fg=yellow]Window: #I, #[fg=cyan]Pane: #P]'
# show hostname, date, tim 100
#set -g status-right '#(battery -t) #[fg=cyan] %d %b %R '
set -g status-right '#(battery -t) #[fg=cyan] #(date "+%%Y-%%m-%%d %%H:%%M:%%S") '
# update status bar info
set -g status-interval 1
############################
## Colours
############################
# color status bar
set -g status-style fg=white,bg=colour235
# color of message bar
set -g message-style fg=white,bold,bg=green
# highlight current window
setw -g window-status-style fg=cyan,bg=colour235
setw -g window-status-current-style fg=white,bold,bg=red
# set color of active pane
set -g pane-border-style fg=colour240,bg=black
set -g pane-active-border-style fg=blue,bg=black
# dim non active panes (don't like it much)
# setw -g window-style fg=colour240,bg=colour235
# setw -g window-active-style fg=white,bg=black
###########################
# Plugins
###########################
# If this is the first install, and plugins don't seem to be working
# 1) Run the following command:
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# 2) Reload TMUX
# To install plugins:
# 1) Add plugin down here
# 2) Prefix + I to install plugin
# To update plugins:
# 1) Prefix + U
# To remove plugins:
# 1) Remove line down here
# 2) Prefix + ALT + U
# If you're using iTerm2 on a Mac you may need to go to your Profiles,
# then keys and select that the `option` key should be treated as `Esc+`
# in order for the `Prefix + ALT + U` combination to work.
## List of plugins
# Default plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Resurrect and Continuum for session persistence
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Run Tmux Plugin Manager
run '~/.tmux/plugins/tpm/tpm'