-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
65 lines (51 loc) · 1.85 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
#run-shell 'tmux setenv -g TMUX_VERSION $(tmux -V \
# sed -en "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")'
set -s escape-time 0
unbind C-b
set -g prefix C-x
bind C-x send-prefix
bind r source-file ~/.tmux.conf
bind -n M-h previous-window
bind -n M-l next-window
bind -n M-2 resize-pane -y 24
bind -n M-8 resize-pane -x 80
if-shell -b '[ "$(echo "$TMUX_VERSION < 2.0" | bc)" = 1 ]' " \
bind -n M-0 select-window -t :0; \
bind -n M-1 select-window -t :1; \
bind -n M-2 select-window -t :2; \
bind -n M-3 select-window -t :3; \
bind -n M-4 select-window -t :4; \
bind -n M-5 select-window -t :5; \
bind -n M-6 select-window -t :6; \
bind -n M-7 select-window -t :7; \
bind -n M-8 select-window -t :8; \
bind -n M-9 select-window -t :9"
if-shell -b '[ "$(echo "$TMUX_VERSION > 2.1" | bc)" = 1 ]' " \
bind -n M-0 select-window -t :=0; \
bind -n M-1 select-window -t :=1; \
bind -n M-2 select-window -t :=2; \
bind -n M-3 select-window -t :=3; \
bind -n M-4 select-window -t :=4; \
bind -n M-5 select-window -t :=5; \
bind -n M-6 select-window -t :=6; \
bind -n M-7 select-window -t :=7; \
bind -n M-8 select-window -t :=8; \
bind -n M-9 select-window -t :=9"
bind -n M-k switch-client -p
bind -n M-j switch-client -n
bind -n M-s split-window -h
bind -n M-v split-window -v
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind -n M-v split-window -c "#{pane_current_path}"
bind -n M-s split-window -h -c "#{pane_current_path}"
set -g default-terminal "tmux-256color"
set -g status-bg black
set -g status-fg green
set -g status-right '#H'
# tmux list-keys <- list all keys