forked from OneDirection9/setup-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
47 lines (37 loc) · 1.11 KB
/
tmux.conf
File metadata and controls
47 lines (37 loc) · 1.11 KB
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
46
47
source "$HOME/.local/lib/python3.6/site-packages/powerline/bindings/tmux/powerline.conf"
#-- base settings --#
set -g default-terminal "screen-256color"
set -g display-time 3000
set -g escape-time 0
set -g history-limit 65535
set -g base-index 1
set -g pane-base-index 1
#-- bindkeys --#
# prefix key (Ctrl+a)
unbind ^b
set -g prefix ^a
# resize pane
bind -r ^h resizep -L 5 # to the left (prefix Ctrl+h)
bind -r ^j resizep -D 5 # downward (prefix Ctrl+j)
bind -r ^k resizep -U 5 # upward (prefix Ctrl+k)
bind -r ^l resizep -R 5 # to the right (prefix Ctrl+l)
# select pane
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# swap pane
bind { swapp -U
bind } swapp -D
bind \ split-window -h -c '#{pane_current_path}' # Split panes horizontal
bind - split-window -v -c '#{pane_current_path}' # Split panes vertically
# copy mode
setw -g mode-keys vi
# paste buffer (prefix Ctrl+p)
bind ^p pasteb
# reload config (prefix r)
bind r source ~/.tmux.conf \; display "Configuration reloaded!"
# prevent renaming automatically
set-option -g allow-rename off
# enable mouse
# set-option -g mouse on