-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
117 lines (94 loc) · 3.48 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#################
# Tmux settings #
#################
# 256 color setting
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
# set prefix as Ctrl-/
unbind C-b
set -g prefix ^_
bind ^_ send-prefix
# easier copy paste
set -g mouse on
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# rebind pane movement keys without -r (remove repeatability) so that
# iTerm2 hex code sending is quicker
bind-key -T prefix Up select-pane -U
bind-key -T prefix Down select-pane -D
bind-key -T prefix Left select-pane -L
bind-key -T prefix Right select-pane -R
# rebind layout switching to be repeatable
bind-key -r -T prefix Space next-layout
# increase repeat-time to make resizing pane easier
set-option -g repeat-time 1000
# make the iterm2 send hex code short cuts work
set -g assume-paste-time 0
# So you don't have to let go of control for these common commands
bind-key -T prefix C-l last-window
bind-key -T prefix C-1 select-window -t :=1
bind-key -T prefix ^@ select-window -t :=2
bind-key -T prefix ^[ select-window -t :=3
bind-key -T prefix ^\ select-window -t :=4
# don't rename windows automatically
set-option -g allow-rename off
# set first window to index 1 (not 0) to map more to the keyboard layout
set -g base-index 1
setw -g pane-base-index 1
# change up preset layouts a bit
setw -g main-pane-height 55
setw -g main-pane-width 150
# Restore from system restart
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-capture-pane-contents 'on'
#######################
#### DESIGN CHANGES ###
#######################
## loud or quiet?
#set-option -g visual-activity off
#set-option -g visual-bell off
#set-option -g visual-silence off
#set-window-option -g monitor-activity off
#set-option -g bell-action none
## modes
#setw -g clock-mode-colour colour5
#setw -g mode-attr bold
#setw -g mode-fg colour1
#setw -g mode-bg colour18
## panes
#set -g pane-border-bg colour0
#set -g pane-border-fg colour19
#set -g pane-active-border-bg colour0
#set -g pane-active-border-fg colour9
## statusbar
#set -g status-position bottom
#set -g status-justify left
#set -g status-bg colour18
#set -g status-fg colour137
#set -g status-attr dim
#set -g status-left ''
#set -g status-right '#[fg=colour233,bg=colour19,bold] %d/%m #[fg=colour233,bg=colour8,bold] %H:%M:%S '
#set -g status-right-length 50
#set -g status-left-length 20
#setw -g window-status-current-fg colour1
#setw -g window-status-current-bg colour19
#setw -g window-status-current-attr bold
#setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
#setw -g window-status-fg colour9
#setw -g window-status-bg colour18
#setw -g window-status-attr none
#setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
#setw -g window-status-bell-attr bold
#setw -g window-status-bell-fg colour255
#setw -g window-status-bell-bg colour1
## messages
#set -g message-attr bold
#set -g message-fg colour232
#set -g message-bg colour16
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# OSX specific tmux settings (for copy to clipboard to work)
if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-osx.conf'