-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
45 lines (34 loc) · 1.15 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
# Remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Split panes using | and -
bind \\ split-window -h
bind - split-window -v
unbind '"'
unbind %
# Don't rename windows automatically
set-option -g allow-rename off
# Automatically reorder window numbers
set-option -g renumber-windows on
# New tmux windows go to home directory
bind c new-window -c "$HOME"
# New pane goes to current working directory
bind \\ split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
# Bring back clear screen under tmux prefix
bind C-l send-keys 'C-l'
# Clear status bar
set-option -g status-right ''
set -g default-terminal "xterm-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
# Move tmux windows with ctrl+shift+direction
# https://superuser.com/a/552493
bind-key -n C-S-Left swap-window -t -1\; select-window -t -1
bind-key -n C-S-Right swap-window -t +1\; select-window -t +1
# Initialize tmux plugin manager
run '~/.tmux/plugins/tpm/tpm'