-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
56 lines (43 loc) · 1.25 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
set -g prefix C-a
bind C-a send-prefix
setw -g mode-keys vi
set -g status-keys vi
set -sg escape-time 0
unbind [
bind Escape copy-mode
unbind Right
unbind Left
unbind Up
unbind Down
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h resize-pane -L
bind -r C-j resize-pane -D
bind -r C-k resize-pane -U
bind -r C-l resize-pane -R
bind C-n next-window
bind m previous-window
bind C-m previous-window
set -g mouse off
set -g default-terminal xterm-256color
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
bind + break-pane
unbind [ ; unbind C-[
unbind ] ; unbind C-]
bind [ swap-window -t -1 \; previous-window
bind C-[ swap-window -t -1 \; previous-window
bind ] swap-window -t +1 \; next-window
bind C-] swap-window -t +1 \; next-window
unbind PageUp
bind C-u copy-mode -u
bind-key J command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key S command-prompt -p "send pane to:" "join-pane -t '%%'"
bind C-p run "tmux set-buffer \"$(xclip -o -selection c)\"; tmux paste-buffer"
bind C-y run "tmux save-buffer - | xclip -i -selection c"
set -g history-limit 100000
set -s set-clipboard off
set -g renumber-windows on