-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
66 lines (54 loc) · 1.43 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
# Change prefix
unbind C-b
set -g prefix `
bind ` send-prefix
set -g default-terminal "xterm"
# Open new window/split pane
unbind c
bind c new-window -c '#{pane_current_path}'
unbind %
bind % split-window -h -c '#{pane_current_path}'
unbind '"'
bind '"' split-window -v -c '#{pane_current_path}'
# Vim like pane navigation
unbind h
bind h select-pane -L
unbind j
bind j select-pane -D
unbind k
bind k select-pane -U
unbind l
bind l select-pane -R
# Resize
unbind Left
bind -r Left resize-pane -L 3
unbind Right
bind -r Right resize-pane -R 3
unbind Down
bind -r Down resize-pane -D 3
unbind Up
bind -r Up resize-pane -U 3
# Split panes
bind | split-window -h -c '#{pane_current_path}'
bind \\ split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
bind _ split-window -v -c '#{pane_current_path}'
# Tmux plugin manager
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'wfxr/tmux-power'
# Theme
set -g @tmux_power_theme 'snow'
set -g base-index 1
setw -g pane-base-index 1
# Clear both screen and history
bind -n C-l send-keys C-l \; run 'sleep 0.1' \; clear-history
# Activity
set -g monitor-activity on
set -g visual-activity off
# Mouse
set -g mouse on
set -g @plugin 'tmux-plugins/tmux-yank'
bind -T copy-mode C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
bind -T copy-mode-vi C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
run '~/.tmux/plugins/tpm/tpm'