-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
44 lines (32 loc) · 1.38 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
# -- general -------------------------------------------------------------------
set -g default-terminal "xterm-256color" # colors!
setw -g xterm-keys on
set -s escape-time 10 # faster command sequences
set -sg repeat-time 600 # increase repeat timeout
set -g prefix2 `
bind ` send-prefix -2
set -g history-limit 10000
# Sane scrolling
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# -- display -------------------------------------------------------------------
set -g base-index 1 # start windows numbering at 1
setw -g pane-base-index 1
# -- navigation ----------------------------------------------------------------
# split current window horizontally
bind - split-window -h
# split current window vertically
bind _ split-window -v
# pane navigation
bind -r h select-pane -L # move left
bind -r j select-pane -D # move down
bind -r k select-pane -U # move up
bind -r l select-pane -R # move right
bind > swap-pane -D # swap current pane with the next one
bind < swap-pane -U # swap current pane with the previous one
# pane adjustment
bind -r ^h resizep -L 10 # Ctrl+h move left 10 position
bind -r ^j resizep -D 10 # Ctrl+j move down 10 position
bind -r ^k resizep -U 10 # Ctrl+k move up 10 position
bind -r ^l resizep -R 10 # Ctrl+l move right 10 position
# new pane retains current path
tmux_conf_new_pane_retain_current_path=true