-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
89 lines (67 loc) · 2.28 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
# tmux config
set -g default-terminal "screen-256color"
# Change the prefix key to C-a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Some tweaks to the status line
set -g status-right "%H:%M"
# set -g window-status-current-attr "underscore"
# If running inside tmux ($TMUX is set), then change the status line to red
%if #{TMUX}
set -g status-bg red
%endif
# "mouse on" makes mouse scrolling work on local sessions for me, but breaks copy-paste with mouse.
#setw -g mouse on
set-option -g history-limit 5000
# No bells at all
set -g bell-action none
# Start window numbering at 1
set -g base-index 1
# Keep windows around after they exit
# set -g remain-on-exit on
# No delay for escape key press
set -sg escape-time 0
set -g status-keys vi
setw -g mode-keys vi
bind b copy-mode
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi u send-keys -X copy-pipe 'reattach-to-user-namespace pbcopy'
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
bind p paste-buffer
# Reload tmux config
bind r source-file ~/.tmux.conf
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# bind -n M-h select-pane -L
# bind -n M-j select-pane -D
# bind -n M-k select-pane -U
# bind -n M-l select-pane -R
bind -n C-h select-pane -L
# Ctrl-l is used to clear the screen and with just two panes Ctrl-h does the same anyway.
# bind -n C-l select-pane -R
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key H resize-pane -L 5
bind-key L resize-pane -R 5
# bind -n F1 select-window -t 1
# bind -n F2 select-window -t 2
# bind -n F3 select-window -t 3
# bind -n F4 select-window -t 4
# bind -n F5 select-window -t 5
# bind -n F6 select-window -t 6
# bind -n F7 select-window -t 7
# Keys to toggle monitoring activity in a window, and synchronize-panes
bind m set monitor-activity
bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}'
# tmux-resurrect options.
# set -g @resurrect-strategy-vim 'session'
# set -g @resurrect-strategy-nvim 'session'
# List of plugins.
# set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf).
# run '~/.tmux/plugins/tpm/tpm'