-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
55 lines (40 loc) · 1.61 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
#----- set status bar
set -g status-bg black
set -g status-fg white
set -g status-left ‘#[fg=green]#H’
set -g status-right "#(~/.tmux/plugins/tmux-continuum/scripts/continuum_save.sh)#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}\"#{=21:pane_title}\""
set-window-option -g window-status-current-style bg=darkred
run-shell 'tmux setenv -g TMUX_PLATFORM $(uname)'
#----- set vi mode
set -g mode-keys vi
#----- set window notifications
setw -g monitor-activity off
set -g visual-activity off
#----- rebind-key split keys
bind-key | split-window -h -c "#{pane_current_path}"
bind-key _ split-window -v -c "#{pane_current_path}"
set -as terminal-features ",xterm-256color*:RGB"
set-option -g renumber-windows on
#----- don't try to rename window in status bar dynamically
set-window-option -g automatic-rename off
setw -g aggressive-resize on
#----- turn on mouse scroll
setw -g mouse on
#----- tmux plugin manager
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-yank'
run '~/.tmux/plugins/tpm/tpm'
#----- tmux plugin manager end
# needed for neovim restore if using appimage
# see https://github.com/tmux-plugins/tmux-resurrect/issues/394#issuecomment-1105698320
set -g @resurrect-processes '"~nvim->nvim *"'
#----- remap clear line and clear screen
bind C-k send-keys 'C-k'
bind C-l send-keys 'C-l'
#----- continuum tmux session state plugin
set -g @continuum-restore 'on'