-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
50 lines (40 loc) · 1.29 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
# Options
# utf8 is on
set-option -g default-terminal "screen-256color"
set-option -g default-shell /bin/zsh
set-option -g escape-time 5
set-window-option -g monitor-activity on
set-option -g mouse on
set-option -g allow-rename off
# Split windows more naturally
bind-key | split-window -h
bind-key - split-window
# Vim-style bindings
bind-key v split-window -h
bind-key s split-window -v
# Vim style pane selection
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key H resize-pane -L 5
bind-key L resize-pane -R 5
# Shift arrow to switch windows
bind-key -n S-Left previous-window
bind-key -n S-Right next-window
# Use Alt-arrow keys to select panes
bind-key -n M-Up select-pane -U
bind-key -n M-Down select-pane -D
bind-key -n M-Left select-pane -L
bind-key -n M-Right select-pane -R
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'nhdaly/tmux-scroll-copy-mode'
set -g @plugin 'tmux-plugins/tmux-urlview'
# Installation: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Install, update, uninstall: <prefix> I, <prefix> U, <prefix> alt-u
run '~/.tmux/plugins/tpm/tpm'