-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
56 lines (46 loc) · 1.51 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
# Remap the prefix
unbind-key C-b
set-option -g prefix C-w
bind-key C-w send-prefix
# History size
set-option -g history-limit 5000
# Enable mouse support
set-option -g mouse on
# Set a timeout for determining a meta-key sequence (speed up ESC)
set-option -sg escape-time 10
# Set vi controls for copy mode
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
# Terminal
set-window-option -g status-keys emacs
set-option -s default-terminal "xterm-256color"
set-option -sa terminal-features ",$TERM:RGB"
set-option -g focus-events on
# Status bar
set-option -g status-left-length 100
set-option -g status-right-length 100
# Window and pane counts start at 1 (instead of 0)
set-option -g base-index 1
set-window-option -g pane-base-index 1
# Windows
bind-key C-p previous-window
bind-key C-n next-window
bind-key "<" swap-window -t -1
bind-key ">" swap-window -t +1
# Panes
bind-key C-h select-pane -L
bind-key C-j select-pane -D
bind-key C-k select-pane -U
bind-key C-l select-pane -R
bind-key "%" split-window -h -c "#{pane_current_path}"
bind-key '"' split-window -v -c "#{pane_current_path}"
bind-key "c" new-window -c "#{pane_current_path}"
bind-key "P" set-option -w pane-border-status
bind-key '#' command-prompt -p "(rename-pane)" "select-pane -T '%%'"
# Plugins
set -g @plugin "nordtheme/tmux"
set -g @plugin "tmux-plugins/tmux-resurrect"
set -g @plugin "tmux-plugins/tmux-yank"
set -g @plugin "tmux-plugins/tpm"
run "~/.tmux/plugins/tpm/tpm"