-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
46 lines (34 loc) · 1.19 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
set -g mouse on
# Remap prefix from 'C-b' to 'C-n'
unbind C-b
unbind C-n
set-option -g prefix C-n
bind-key C-n send-prefix
# Easy configuration reloading
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Easier pane splitting shortcuts
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# Open panes in new windows in same directory
bind c new-window -c "#{pane_current_path}"
# Easier pane navigation shortcuts
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Delay for C-n q (show pane numbers)
# Can be used to switch to a pane by number
set -g display-panes-time 4000
# set the speed at which messages disappear from status line
set -g display-time 4000
# Start windows and panes at 1 instead of 0
set -g base-index 1
setw -g pane-base-index 1
# Set the default terminal mode to 256 color mode
set -g default-terminal "screen-256color"
# set the status line's colors
# set -g status-style fg=white,bg=colour234
# use the Vi key bindings while on copy mode
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel