-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
44 lines (44 loc) · 1.2 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
# Set command prefix to ctrl-a
set -g prefix C-a
# Remove default command prefix ctrl-b
unbind C-b
# Start numbering windows at 1 instead of 0
set -g base-index 1
# Start numbering panes at 1 instead of 0
set -g pane-base-index 1
# Remove command delay
set -sg escape-time 1
# Reload tmux.conf
bind r source-file ~/.tmux.conf\; display "Reloaded!"
# Send command prefix ctrl-a to applications by pressing it twice
bind C-a send-prefix
# Split panes
bind _ split-window -h
bind - split-window -v
# Set movement between panes to vi moevement
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Cycle through windows with ctrl-h and ctrl-l
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Resize panes
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
# Set color setting
set -g default-terminal "screen-256color"
# Use Vim key binduíngs for copy mode
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
# Configure the mouse
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on