-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
57 lines (45 loc) · 1.72 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
46
47
48
49
50
51
52
53
54
55
56
57
# TMUX_COLORTAG_USE_POWERLINE=yes
# TMUX_COLORTAG_ROUNDED_POWERLINE=yes
# Set prefix to Ctrl-Space instead of Ctrl-b
set -g prefix C-Space
unbind C-b
# Sensible options
set -g display-time 4000
# Conf to make nvim color scheme work work
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
# Split windows using | and -
# Split and new windows are opened with the current working directory
bind - split-window -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
set-option -sg escape-time 0
set-option -g focus-events on
# Vi like keys
set-window-option -g mode-keys vi
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel
bind P paste-buffer
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel
# Resize using hjlk instead of arrows
bind -r -T prefix C-h resize-pane -L 1
bind -r -T prefix C-j resize-pane -D 1
bind -r -T prefix C-k resize-pane -U 1
bind -r -T prefix C-l resize-pane -R 1
# List of plugins
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'christoomey/vim-tmux-navigator'
# set -g @plugin 'Determinant/tmux-colortag'
set -g @plugin 'erikw/tmux-powerline'
set -g @plugin 'wfxr/tmux-power'
# Plugin config
set -g @resurrect-strategy-nvim 'session'
set -g @continuum-boot 'on'
set -g @continuum-restore 'on'
set -g @continuum-save-interval '5'
set -g @tmux_power_theme 'everforest'
# set -g status-right 'Continuum status: #{continuum_status}'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'