-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_tmux.conf
60 lines (46 loc) · 2.08 KB
/
dot_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
58
59
60
# Use c-a as default prefix
set-option -g prefix C-a
# Toggle between windows
bind-key C-a last-window
# Start numbering at 1
set -g base-index 1
setw -g pane-base-index 1
# Renumber the windows after one is closed
set -g renumber-windows on
set -g automatic-rename on
# Allow the mouse
set-option -g -q mouse on
# Use vim keybindings in copy mode
setw -g mode-keys vi
# https://github.com/Homebrew/homebrew-core/issues/102748
set -g default-terminal screen-256color
# Fix colors (https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh)
set -ga terminal-overrides ",xterm-256color:Tc"
# status bar
set -g status "on"
set -g status-bg "colour236"
set -g status-justify "left"
set -g status-position "top"
set -g status-left-length "100"
set -g status-right-length "100"
set -g status-left "#{prefix_highlight}#[fg=colour22,bg=colour148,bold] #S #[fg=colour148,bg=colour236,nobold,nounderscore,noitalics]"
set -g status-right "#[fg=colour240,bg=colour236,nobold,nounderscore,noitalics]#[fg=colour250,bg=colour240] %Y-%m-%d %H:%M #[fg=colour252,bg=colour240,nobold,nounderscore,noitalics]#[fg=colour241,bg=colour252] #h "
setw -g window-status-separator ""
setw -g window-status-format "#[fg=colour245,bg=colour236] #I #[fg=colour245,bg=colour236]#W "
setw -g window-status-current-format "#[fg=colour236,bg=colour240,nobold,nounderscore,noitalics]#[fg=colour231,bg=colour240] #I #[fg=colour231,bg=colour240]#{?window_zoomed_flag,#[fg=green][],}#W #[fg=colour240,bg=colour236,nobold,nounderscore,noitalics]"
# Plugin configs
set -g @session-wizard C-p
set -g @session-wizard-height 40
set -g @session-wizard-width 80
set -g @continuum-restore 'on'
set -g @resurrect-capture-pane-contents 'on'
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'laktak/extrakto'
set -g @plugin '27medkamal/tmux-session-wizard'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
run -b '~/.tmux/plugins/tpm/tpm'