-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
44 lines (34 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
40
41
42
43
44
# use bash
set-option -g default-shell "/usr/local/bin/bash"
# change prefix from C-b to C-a
unbind C-b
set -g prefix C-a
# and use C-a a to send commands to a tmux in a tmux
bind C-a send-prefix
# Vi-style key bindings for stuff like copy+paste
set -g status-keys vi
set-window-option -g mode-keys vi
# Enable mouse scrolling
setw -g mouse on
# Vi-style pane switching
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# For colors, especially in vim
set -g default-terminal "screen-256color"
# Window & pane numbering should start at 1 for the sake of fingers
set -g base-index 1
set-window-option -g pane-base-index 1
# Tweak status bar to make a little less blinding
# set -g status-bg black
# set -g status-fg white
# set-window-option -g window-status-current-bg white
# set-window-option -g window-status-current-fg black
# Plugins
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Automatic save/restore via tmux-continuum
set -g @continuum-restore 'on'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'