-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
40 lines (29 loc) · 1.02 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
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
set-option -sg escape-time 10
set-option -g focus-events on
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Base index for windows (1 instead of 0)
set -g base-index 1
# reload
unbind r
bind r source-file $HOME/.tmux.conf \; display "Reloaded ~/.tmux.conf"
# Switch window
bind-key -n M-h previous-window
bind-key -n M-l next-window
# New window
unbind n
unbind p
bind c new-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
set -g mouse on
# enables mouse selection copy
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -se c -i"
# fixes tmux appending previous copies
bind -T copy-mode-vi enter send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
source-file $HOME/.config/tmux/powerline/gray.tmuxtheme
run '~/.tmux/plugins/tpm/tpm'