-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
45 lines (37 loc) · 1.26 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
# colors
# tell Tmux that outside terminal supports true color
set-option -sa terminal-overrides ",xterm*:Tc"
set -g mouse on
# use ctrl-a for prefix
unbind C-b
set -g prefix C-space
bind C-space send-prefix
# Start numbering at 1
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
# set window split
bind-key | split-window -h -c "#{pane_current_path}"
bind-key - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# enable vi style keys
set-window-option -g mode-keys vi
# Clipboard integration
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
bind-key -T copy-mode-vi C-V send-keys -X rectangle-toggle
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
#set -g @plugin "odedlaz/tmux-onedark-theme"
set -g @plugin 'khanghh/tmux-dark-plus-theme'
# install plugin manager => git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
run '~/.tmux/plugins/tpm/tpm'