-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
69 lines (49 loc) · 1.69 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
set -g default-terminal "screen-256color"
set-option -gw xterm-keys on
set -g default-command "(hash reattach-to-user-namespace >/dev/null 2>&1 && reattach-to-user-namespace -l zsh) || zsh"
# can't use these for linux, gotta find another alternative
bind C-c run "tmux show-buffer | reattach-to-user-namespace pbcopy"
bind C-v run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
set-option -g prefix C-a
# set -g utf8 on
# set -g status-utf8 on
unbind-key C-b
bind-key C-a send-prefix
# 1 is better than 0
set -g base-index 1
setw -g pane-base-index 1
# terminal names
set -g set-titles on
set -g mouse on
# Toggle mouse on with ^B m
bind m \
set -g mouse on \;\
display 'Mouse: ON'
# Toggle mouse off with ^B M
bind M \
set -g mouse off \;\
display 'Mouse: OFF'
# activity monitor
setw -g monitor-activity on
set -g visual-activity on
# active window colors
setw -g window-status-current-fg white
setw -g window-status-current-bg blue
setw -g window-status-current-attr bright
# better highlighting of active pane
set-option -g pane-active-border-fg blue
# set -g window-active-style 'bg=#222222'
# set -g window-style 'bg=#333333'
# new-session default
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'nhdaly/tmux-scroll-copy-mode'
# 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 '~/.tmux/plugins/tpm/tpm'