-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_tmux.conf
66 lines (54 loc) · 2.43 KB
/
dot_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
# Update the status bar every interval seconds. By default, updates will occur
# every 15 seconds. A setting of zero disables redrawing at interval.
set -g status-interval 5
# Set the position of the window list component of the status line: left,
# centre or right justified.
set -g status-justify centre
set -g status-bg black
set -g status-fg green
set -g status-left-length 30
set -g status-left '[ #[fg=green,bold]#h #[fg=default,default]]'
set -g status-right-length 60
set -g status-right '[ #[fg=cyan,bold]%m/%d %H:%M#[fg=default,default] ]'
setw -g window-status-current-format '#[fg=red,bold](#[fg=white,bold]#I:#W#F#[fg=red,bold])#[fg=default,default]'
setw -g window-status-current-style bright
setw -g window-status-style fg=white
setw -g window-status-last-style fg=cyan
setw -g window-status-activity-style fg=yellow,bold
setw -g window-status-bell-style fg=yellow,bold
# Mouse configuration
set -g mouse on
# disable "release mouse drag to copy and exit copy-mode", ref: https://github.com/tmux/tmux/issues/140
unbind-key -T copy-mode-vi MouseDragEnd1Pane
# Set the base index from which an unused index should be searched when a new
# window is created.
set -g base-index 1
set -g pane-base-index 1
setw -g aggressive-resize on
# Do not wrap on searches (I added this feature :D )
setw -g wrap-search off
# Set the maximum number of lines held in window history. This setting applies
# only to new windows - existing window histories are not resized and retain
# the limit at the point they were created.
set -g history-limit 50000
# Set the default terminal for new windows created in this session - the
# default value of the TERM environment variable. For tmux to work correctly,
# this must be set to screen or a derivative of it.
set -g default-terminal "screen-256color"
# Bind the R key to reload this file
bind-key R run-shell -b ' \
tmux source-file ~/.tmux.conf > dev/null; \
tmux display-message "Sourced ~/.tmux.conf"'
# Use | and _ for vertical and horizontal splits
bind-key _ split-window -c "#{pane_current_path}"
bind-key | split-window -h -c "#{pane_current_path}"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set-window-option -g mode-keys vi
set -g display-panes-time 4000
# Initialize TMUX plugin manager (keep this line at the very bottom of
# tmux.conf)
run '~/.tmux/plugins/tpm/tpm'