-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
49 lines (38 loc) · 1.09 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
46
47
48
49
# these are in tmux-sensible
# set -g default-terminal "screen-256color"
# set -g history-limit 50000
# use vim key bindings
setw -g mode-keys vi
# disable mouse
set -g mouse off
# remap prefix to 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# split vertically using Prefix+|
unbind %
bind | split-window -h
# split horizontally using Prefix+-
unbind '"'
bind - split-window -v
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
# Switch panes with hjkl
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes
bind -r H resize-pane -L 5 # 5 px bigger to the left
bind -r J resize-pane -D 5 # 5 px bigger down
bind -r K resize-pane -U 5 # 5 px bigger up
bind -r L resize-pane -R 5 # 5 px bigger right
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'