-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtmux.conf
More file actions
35 lines (27 loc) · 789 Bytes
/
tmux.conf
File metadata and controls
35 lines (27 loc) · 789 Bytes
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 the prefix to Ctrl+b
set-option -g prefix C-b
bind-key C-b send-prefix
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
# Set a longer history limit
set -g history-limit 10000
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Renumber windows when a window is closed
set-option -g renumber-windows on
# Use Alt-arrow keys to switch panes
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
# Shift-arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# Easy-to-remember split pane commands
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# Reload config file
bind r source-file /etc/tmux.conf \; display "Reloaded!"