-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
39 lines (30 loc) · 1 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
## Use space as leader
set -g prefix C-Space
unbind-key C-b
bind-key C-Space send-prefix
set -g mouse on
# Split panes: Preserve default bindings
bind-key "%" split-window -h -c "#{pane_current_path}"
bind-key "\"" split-window -v -c "#{pane_current_path}"
# Split panes: Custom bindings
bind-key | split-window -h -c "#{pane_current_path}"
bind-key _ split-window -v -c "#{pane_current_path}"
# Create session, similar to <bind>c create window
bind-key C command-prompt -p "New session name: " "new-session -s '%%'"
# Reload
bind r source-file ~/.tmux.conf
# Status bar
set -g status off
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
set-option -g default-terminal "screen-256color" # neovim recommends this.
set -g status-keys vi
set -gw mode-keys vi
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
run '~/.tmux/plugins/tpm/tpm' # Must be last line of tmux.conf