-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
40 lines (30 loc) · 983 Bytes
/
.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
# vi-mode
set -g @shell_mode 'vi'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# vim resurrect
set -g @resurrect-strategy-vim 'session'
# open new panes in $PWD
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Powerline
set -g default-terminal "screen-256color"
# C-a leader
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# move windows left/right
# https://superuser.com/questions/343572/how-do-i-reorder-tmux-windows
bind-key -n C-S-Left swap-window -t -1
bind-key -n C-S-Right swap-window -t +1
# Speed up moving between windows
bind-key C-n next-window
bind-key C-p previous-window
# Tmuxline
if-shell "test -f .tmuxline.conf" "source .tmuxline.conf"
# Initialize TMUX plugin manager (keep this line at the very bottom of
# tmux.conf)
run '~/.tmux/plugins/tpm/tpm'