-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
39 lines (31 loc) · 941 Bytes
/
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
# prefix
unbind C-b
set -g prefix C-a
# base index
set -g base-index 1
set -g pane-base-index 1
# enable mouse for pane, window
set -g mouse on
bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
bind -n WheelDownPane select-pane -t= \; send-keys -M
# highlight active window
set-window-option -g window-status-current-bg red
# activity
# setw -g monitor-activity on
# set -g visual-activity on
# splitting and cycling
unbind %
bind + split-window -h # horizontal split
unbind '"'
bind _ split-window -v # vertical split
bind C-j previous-window
bind C-k next-window
# pane switching with Alt+arrow
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
# window title
set-option -g set-titles on
set-option -g set-titles-string '#S:#W' # window number,program name,active (or not)
set-window-option -g automatic-rename on # auto name