-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
35 lines (27 loc) · 827 Bytes
/
.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
set -g default-terminal "xterm"
set-option -g default-command "reattach-to-user-namespace -l bash"
# Bind prefix to C-r
set -g prefix C-f
unbind C-b
# Setting the delay between prefix and command
set -sg escape-time 0
# Enable vim bindings
setw -g mode-keys vi
# Resize panes with vim directional keys
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Switch panes with vim directional keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# More sensible window splitting
unbind %
bind | split-window -h -c '#{pane_current_path}'
bind _ split-window -v -c '#{pane_current_path}'
# Reload tmux conf
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Sane scrolling
set -g terminal-overrides 'xterm*:smcup@:rmcup@'