-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
39 lines (32 loc) · 1.04 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
#
# Switch TMUX from CTRL+B to CTRL+a (GNU screen style)
#~ unbind-key C-b
#~ set-option -g prefix C-a
#~ bind-key C-a send-prefix
unbind C-b
set-option -g prefix `
bind ` send-prefix
# Defaults
# PREFIX ? - Help
# PREFIX % - Split the current pane vertically.
# PREFIX " - Split the current pane horizontally.
# PREFIX arrow key - Move between panes.
# PREFIX c - Create a new window.
# PREFIX n - Move to the next window.
# PREFIX p - Move to the previous window.
# PREFIX {number} - Jump to window {n}
# PREFIX d - Detach from the current session.
# Additional split commands
bind | split-window -h
bind - split-window -v
# Reload configuration
bind-key R source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
# Change mouse mode
unbind-key m
bind-key m set -g mouse on \; display-message "Mouse mode ON"
bind-key M set -g mouse off \; display-message "Mouse mode OFF"
# Rebind this keys with the "Repeat" disabled
bind-key Up select-pane -U
bind-key Down select-pane -D
bind-key Left select-pane -L
bind-key Right select-pane -R