-
Notifications
You must be signed in to change notification settings - Fork 2
/
tmux.conf
39 lines (31 loc) · 1.14 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
# C-Space prefix
unbind-key C-b
set -g prefix 'C-Space'
bind-key 'C-Space' send-prefix
# zsh
set -g default-command zsh
# vi mode
set -g status-keys vi
setw -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-and-cancel
# tmux behavior
set -g renumber-windows on
set -g base-index 1
setw -g pane-base-index 1
# status bar
set -g status-right "#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}#{prefix_highlight} #{=21:pane_title} %Y-%m-%dT%H:%M"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
# 256 color
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
# Automatically install tpm
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'