-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtmux.conf
53 lines (41 loc) · 1.3 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
# Larger History
set -g history-limit 10000
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Ring the bell if any background window rang a bell
set -g bell-action any
# Default termtype. If the rcfile sets $TERM, that overrides this value.
set -g default-terminal "screen-256color"
# Fixing Pasteboard
set -g default-shell $SHELL
set -g default-command "reattach-to-user-namespace -l ${SHELL}"
# Keep your finger on ctrl, or don't
bind-key ^D detach-client
# start numbering windows from 1 instead of zero
set -g base-index 1
set -g pane-base-index 1
# use PREFIX | to split window horizontally and PREFIX - to split vertically
bind | split-window -h
bind - split-window -v
# Cycle Through Panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Cycle Through Windows
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Resize Panes - Repeat Enabled
setw -g aggressive-resize on
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
# Clear Scrollback Buffer
bind -n C-k clear-history
# Use vi keybindings for tmux commandline input.
# Note that to get command mode you need to hit ESC twice...
set -g status-keys vi
setw -g mode-keys vi
set-window-option -g xterm-keys on