-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
88 lines (61 loc) · 2.22 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
set-option -g prefix C-a
unbind-key C-b
bind-key R source-file ~/.tmux.conf
bind a send-prefix
bind h select-pane -L
bind l select-pane -R
bind j select-pane -D
bind k select-pane -U
set -g mouse on
# increase scrollback buffer size
set -g history-limit 50000
# tmux messages are displayed for 4 seconds
set -g display-time 4000
# refresh 'status-left' and 'status-right' more often
set -g status-interval 5
# upgrade $TERM
set -g default-terminal "screen-256color"
# focus events enabled for terminals that support them
set -g focus-events on
# super useful when using "grouped sessions" and multi-monitor setup
setw -g aggressive-resize on
# emacs key bindings in tmux command prompt (prefix + :) are better than vi keys, even for vim users
set -g status-keys emacs
# enable wm window titles
# set -g set-titles on
# wm window title string (uses statusbar variables)
# set -g set-titles-string "tmux.#I.#W"
# pass through xterm keys
set -g xterm-keys on
set -g base-index 1
set -g pane-base-index 1
set-option -g allow-rename off
set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name, active(or not)
set-option -g visual-bell on
setw -g mode-keys vi
set-option -g message-fg black
set-option -g message-bg green
set -g status-left '#[fg=red]#H#[fg=green]:#[fg=white]#S #[fg=green]][#[default]'
set -g status-right '#[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]'
set-option -sg escape-time 0
set-option -g terminal-overrides 'rxvt-unicode*:sitm@,ritm@'
set-option -g status-justify left
set-option -g status-bg black
set-option -g status-fg white
set-option -g status-left-length 40
set-option -g pane-active-border-fg green
set-option -g pane-active-border-bg black
set-option -g pane-border-fg white
set-option -g pane-border-bg black
setw -g window-status-bg black
setw -g window-status-current-fg green
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'