-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
46 lines (30 loc) · 1011 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
39
40
41
42
43
44
45
46
# This config must be copied to ~/.tmux.conf in order to take effect
# heavily inspired by - https://www.josean.com/posts/tmux-setup - https://www.youtube.com/watch?v=U-omALWIBos&t=584s
set -g default-terminal "screen-256color"
# change prefix
set -g prefix M-z
unbind C-b
bind-key M-z send-prefix
# change caps lock to ctrl
# --
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind r
bind r source-file ~/.tmux.conf
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z 5
set -g mouse on
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
unbind -T copy-mode-vi MouseDragEnd1Pane
# tpm plugin
set -g @plugin 'tmux-plugins/tpm'
# list of tmux plugins
set -g @plugin 'christoomey/vim-tmux-navigator'
# initialize TMUX plugin manager (keep this at the bottom of the file)
run '~/.tmux/plugins/tpm/tpm'