-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
76 lines (63 loc) · 1.92 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
# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
# use the correct default shell
set-option -g default-shell /bin/zsh
# make delay shorter
set -sg escape-time 0
# make window/pane index start with 1
set -g base-index 1
set-window-option -g pane-base-index 1
# Mouse
setw -g mouse on
# Vim key mode
setw -g mode-keys vi
# Clipboard ?
set -g set-clipboard on
# Reload with ^a r
unbind r
bind r source-file ~/.tmux.conf
# Use the xterm-256color terminal
set -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
# set -g @onedark_widgets "#{cpu_fg_color}#{cpu_percentage} #{cpu_icon} | #{battery_status_fg}#{battery_percentage}"
run-shell ~/.tmux/tmux-onedark-theme.tmux
# PLUGIN MANAGER
# 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-pain-control'
#set -g @plugin 'odedlaz/tmux-onedark-theme'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
# set -g @plugin 'tmux-plugins/tmux-cpu'
# set -g @plugin 'tmux-plugins/tmux-battery'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# Navigation
unbind n
unbind p
bind -r h select-pane -L
bind -r l select-pane -R
bind -r j select-pane -U
bind -r k select-pane -D
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -r C-h previous-window
bind -r C-l next-window
bind -r Tab last-window
# Split
bind | split-window -h -c '#{pane_current_path}'
bind - split-window -c '#{pane_current_path}'
bind '"' split-window -c '#{pane_current_path}'
bind '%' split-window -h -c '#{pane_current_path}'
# Resize
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
# Copy mode
bind-key -T copy-mode-vi 'v' send -X begin-selection