-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
60 lines (46 loc) · 1.34 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
50
51
52
53
54
55
56
57
58
59
60
# Do not run start tmux in a login shell. Instead use non login shell
set -g default-command "${SHELL}"
# Change prefix from <c-b> to <Alt-q>
unbind C-b
set-option -g prefix M-q
bind M-q send-prefix
# Keybinding to reload tmux config
bind r source-file ~/.tmux.conf
# Start indexing windows from 1
set -g base-index 1
setw -g pane-base-index 1
# Use 256 bit color
set -g default-terminal "tmux-256color"
# Set scrollback limit to 10000 lines do
set -g history-limit 10000
# Allow up and down arrow keys to scroll
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
# Set mouse on
set -g mouse on
# Vi keys
set -g mode-keys vi
# Windows and panes
unbind '"'
unbind %
bind / split-window -h
bind - split-window -v
# Moving between panes with vim movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Moving between windows with vim movement keys
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Resize panes with vim movement keys
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Plugins
set -g @plugin 'tmux-plugins/tpm'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
# prefix I to install plugins
# prefix U to update plugins
# prefix alt+u to uninstall plugins
run '~/.tmux/plugins/tpm/tpm'