-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
74 lines (56 loc) · 1.63 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
# set the default TERM
set -g default-terminal "screen-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
set-window-option -g xterm-keys on
# remap prefix from C-b to C-a
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# Scroll mode
unbind '['
bind-key -n F7 copy-mode
# fast config reloading
bind-key R source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
# switch panes using Alt-arrow without prefix
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
# new window
bind -n M-n new-window
# moving between windows
bind -n M-, select-window -t :-
bind -n M-. select-window -t :+
# enable mouse mode
set -g mouse on
# stop renaming my windows
set-option -g allow-rename
setw -g monitor-activity on
set -g visual-activity on
set -g mode-keys vi
set -g history-limit 100000
bind Escape copy-mode
unbind p
bind p paste-buffer
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 r send-keys -X rectangle-toggle
set-option -s set-clipboard on
# Enable foucs events
set -g focus-events on
# We Tmux Plugin Manager now
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @shell_mode 'vi'
set -g @yank_selection 'clipboard'
set -g status-right 'Batt: #{battery_icon} #{battery_percentage} | %a %h-%d %H:%M '
run '~/.tmux/plugins/tpm/tpm'