forked from enml/mac-env-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
78 lines (65 loc) · 2.36 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
set -g mouse on
# screen mode
set -sg escape-time 10
set-option -g default-terminal "screen-256color"
set -g focus-events on
set -g history-limit 200000
set -g buffer-limit 20
set -g display-time 1500
set -g remain-on-exit off
set -g repeat-time 300
setw -g allow-rename off
setw -g automatic-rename off
setw -g aggressive-resize on
# use <prefix> s for horizontal split
bind s split-window -v -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
# use <prefix> v for vertical split
bind v split-window -h -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# use <prefix> h/j/k/l to go to pane left/below/above/right.
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Key bindings for adjusting panes size
bind-key K resize-pane -U # up
bind-key J resize-pane -D # down
bind-key L resize-pane -R # right
bind-key H resize-pane -L # left
bind-key m resize-pane -Z # maximize
set-window-option -g mode-keys vi
list-keys -T copy-mode-vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# reload key
bind-key R source-file ~/.tmux.conf \; display-message "Reload .."
# Seperator colors for current pane
set-option -g pane-active-border-style fg=blue # foreground
# Seperator color for other panes
set-option -g pane-border-style fg=cyan # foreground
# Colors for the status bar
set -g status-bg 'black' # background
set -g status-fg 'white' # foreground
# ----- Windows -----
# Status format for the current window
setw -g window-status-current-format '#[fg=blue,bold]✔ #[fg=white,bold]#W'
# Status format for other windows
setw -g window-status-format '#[fg=white]#I #W'
# Seperator between each window names
set -wg window-status-separator ' '
# Show alert if other window changes?
setw -g monitor-activity off
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# 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 '~/.tmux/plugins/tpm/tpm'