-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
52 lines (39 loc) · 1.1 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
# New binding key
set -g prefix C-b
set -g prefix2 C-x
bind C-b send-prefix
bind C-x send-prefix
set -g mouse on
set-option -g history-limit 8000
# numbering win and panes
set -g base-index 1
setw -g pane-base-index 1
# Keep current path when create new terminal
bind c new-window -c "#{pane_current_path}"
setw -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe 'xclip -in -selection clipboard'
# Set zsh
set-option -g default-shell /bin/zsh
# Resizing
#bind -r C-j resize-pane -D 15
#bind -r C-k resize-pane -U 15
#bind -r C-h resize-pane -L 15
#bind -r C-l resize-pane -R 15
set-window-option -g automatic-rename on
set-option -g set-titles on
unbind '"'
unbind %
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Use r to quickly reload tmux settings
unbind r
bind r \
source-file ~/.tmux.conf \;\
display 'Reloaded tmux config'
# refresh status line every 5 s
set -g status-interval 5