-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
33 lines (26 loc) · 1.01 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
# prefix key
set -g prefix C-s
# Automatic tpm installation
setenv -g TMUX_PLUGIN_MANAGER_PATH "$HOME/.tmux/plugins/"
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && \
~/.tmux/plugins/tpm/bin/install_plugins'"
# List of plugins
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'ToshikiNakamura0412/tmux-power'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tpm'
# theme
set -g @tmux_power_theme 'moon'
set -g @tmux_power_prefix_highlight_pos 'L'
# pain control
bind / select-pane -R\; select-pane -U
bind + splitw -d -t 0 -c '#{pane_current_path}'\; splitw -h -d -t 1 -c '#{pane_current_path}'\; splitw -h -d -t 0 -c '#{pane_current_path}'
# [Copy mode] key bind
setw -g mode-keys vi
# enable mouse
set -g mouse on
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'