-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
53 lines (41 loc) · 1.55 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
# Enable mouse mode
set -g mouse on
# Start window indexing at 1
set -g base-index 1
# Use vi mode for navigation
setw -g mode-keys vi
# Copy selection on drag end event, but do not cancel copy mode and do not clear selection
# clear select on subsequence mouse click
bind -T copy-mode-vi MouseDragEnd1Pane \
send-keys -X copy-pipe "pbcopy"
bind -T copy-mode-vi MouseDown1Pane select-pane \;\
send-keys -X clear-selection
# Remap prefix to C-Space
unbind C-b
set-option -g prefix C-Space
bind-key C-Space send-prefix
# Visual
set -g status-left-length 20
set -g status-left "#[fg=colour1][#S] "
set -g status-right-length 60
set -g status-right "#[fg=white]#{prefix_highlight} | #[fg=green]#H #[fg=white]| #[fg=blue]%a %b %d %H:%M"
set -g status-style bg=colour238,fg=default
set -g window-status-style fg=colour253,bg=colour238
set -g window-status-current-style fg=colour76,bg=colour235
set -g pane-active-border-style fg=colour39
# prefix-highlight config
set -g @prefix_highlight_prefix_prompt 'pre'
# Plugins
# =======
# tpm - tmux plugin manager
set -g @plugin 'tmux-plugins/tpm'
# tmux-sensible - reasonable tmux defaults
set -g @plugin 'tmux-plugins/tmux-sensible'
# tmux-pain-control - improved pane controls
set -g @plugin 'tmux-plugins/tmux-pain-control'
# tmux-resurrect - restores tmux environment after system restarts
set -g @plugin 'tmux-plugins/tmux-resurrect'
# tmux-prefix-highlight - highlights when the prefix is activated
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
# Initialize tpm (tmux plugin manager)
run -b '~/.tmux/plugins/tpm/tpm'