-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
59 lines (47 loc) · 1.55 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
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @open-S 'https://www.google.com/search?q='
set -g default-terminal "screen-256color"
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Start window numbering at 1
set -g base-index 1
set -g mouse on
# hjkl
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h prev
bind -r C-l next
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind = split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# copy mode
setw -g mode-keys vi
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi C-v send -X rectangle-toggle
bind C copy-mode
bind P paste-buffer
# style
# setw -g window-status-current-style fg=white,bg=colour15
setw -g window-status-current-style bold,fg=green
set -g status-style bg=default,fg=white
set -g status-left-length 20
set -g status-left "#[fg=colour250]#{session_name}#[default] "
set -g automatic-rename on
set -g automatic-rename-format '#{pane_current_command}:#{b;s/#{USER}/~/:pane_current_path}'
set -g clock-mode-colour white
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'