-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
70 lines (56 loc) · 1.96 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
66
67
68
69
70
# Remove unnecessary delay when hitting escape.
set -sg escape-time 1
# Make it pretty.
set -g default-terminal "screen-256color"
set -g status-bg colour234
set -g status-fg white
set -g set-titles on
# Enable vi-like command mode.
set-window-option -g mode-keys vi
# Kill the window with force.
bind q killp
# vim-like movement bindings.
bind -r C-h select-pane -L
bind -r C-j select-pane -D
bind -r C-k select-pane -U
bind -r C-l select-pane -R
# vim-like visual mode.
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
bind-key -T copy-mode-vi 'Space' send -X halfpage-down
bind-key -T copy-mode-vi 'Bspace' send -X halfpage-up
# vim-like window splitting.
bind C-v split-window -h
bind C-s split-window -v
# vim-like pane resizing.
bind -r < resize-pane -L 1
bind -r > resize-pane -R 1
bind -r - resize-pane -D 1
bind -r = resize-pane -U 1
# Support true colored terminals (assuming that is).
set-option -ga terminal-overrides ",xterm-256color:Tc"
# Make sure that closing a session or shell doesn't close everything.
set-option -g detach-on-destroy off
# Set a practically unlimited history limit. I have plenty of memory...
set -g history-limit 1000000
# Start numbering windows from 1 to save my fingers from pain.
setw -g pane-base-index 1
set -g base-index 1
# Also allow switching between windows to be a little bit easier.
bind-key -n M-0 select-window -t :0
bind-key -n M-1 select-window -t :1
bind-key -n M-2 select-window -t :2
bind-key -n M-3 select-window -t :3
bind-key -n M-4 select-window -t :4
bind-key -n M-5 select-window -t :5
bind-key -n M-6 select-window -t :6
bind-key -n M-7 select-window -t :7
bind-key -n M-8 select-window -t :8
bind-key -n M-9 select-window -t :9
# Allows me to use keybinds with shift in it.
set -s extended-keys on
set-option -gw xterm-keys on
set -as terminal-features 'xterm*:extkeys'
set-option -g allow-passthrough on
# Sort sessions by name like tmux <= 2.9a.
bind s choose-tree -s -O name