-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
56 lines (46 loc) · 1.31 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
# Remap prefix from 'Ctrl-b' to 'Ctrl-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Theme
source-file ~/.tmux/tmux-theme
# Force a config reload
unbind r
bind r source-file ~/.tmux.conf
# Vim-like pane navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind H resize-pane -L 15
bind J resize-pane -D 15
bind K resize-pane -U 15
bind L resize-pane -R 15
# Renumbering
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on
bind 0 select-window -t :10
# Pane split
bind \\ split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# Disable esc delay for vim
set -sg escape-time 0
# Misc
set -g history-limit 10000
set -g status-keys vi
setw -g mode-keys vi
# Vim-like copy paste
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# List of plugins
# Default
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @tpm-clean U
set -g @plugin 'thewtex/tmux-mem-cpu-load'
set -g status-interval 2
if-shell 'test "$(uname -s)" = "Darwin"' 'source-file ~/.tmux/tmux-macos'
source-file ~/.tmux/tmux-local.conf
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'