-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
34 lines (27 loc) · 945 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
# Enable mouse
set -g mouse on
# Disable right click menu
unbind -n MouseDown3Pane
# Start windows and panes count at 1 instead of 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# Change session when closing last window in a session
set-option -g detach-on-destroy off
# Open pane in current directory
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# Change some bindings to be more concistent with vim
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send-key -X begin-selection
bind-key -T copy-mode-vi C-v send-key -X rectangle-toggle
bind-key -T copy-mode-vi y send-key -X copy-selection-and-cancel
# Set prefix to ctrl space
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# Plugins
set -g @plugin 'tmux-plugin/tpm'
set -g @plugin 'tmux-plugin/tmux-yank'
run '~/.tmux/plugins/tpm/tpm'