-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
107 lines (89 loc) · 3.52 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
####################
# Plugins
####################
TMUX_COLORTAG_USE_POWERLINE=yes
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'jaclu/tmux-menus'
set -g @plugin 'yardnsm/tmux-1password'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @plugin 'MunifTanjim/tmux-suspend'
set -g @plugin 'MunifTanjim/tmux-mode-indicator'
set -g @plugin 'schasse/tmux-jump'
set -g @plugin 'odedlaz/tmux-onedark-theme'
set-option -g @plugin 'b0o/tmux-autoreload'
# has to be last plugin to load
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
####################
# General Settings
####################
set -g @continuum-boot 'on'
set -g @continuum-boot-options 'iterm'
set -g @continuum-restore 'on'
set -g @continuum-save-interval '5'
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-processes 'ssh'
set -g aggressive-resize on
set -g allow-rename off
set -g base-index 1
set -g mouse on
set -g visual-activity on
set-option -g default-command "/bin/bash -c 'which reattach-to-user-namespace >/dev/null && exec reattach-to-user-namespace $SHELL -l || exec $SHELL -l'"
setw -g mode-keys vi
setw -g monitor-activity on
####################
# Appearance
####################
left_arrow=""
right_arrow=""
bg_color="#11121d"
set -g @mode_indicator_copy_mode_style bg=color6,fg=color016,bold
set -g @mode_indicator_copy_prompt " COPY #[default]#[fg=color6]$right_arrow"
set -g @mode_indicator_empty_mode_style bg=color4,fg=color016,bold
set -g @mode_indicator_empty_prompt " TMUX #[default]#[fg=color4]$right_arrow"
set -g @mode_indicator_prefix_mode_style bg=color11,fg=color016,bold
set -g @mode_indicator_prefix_prompt " WAIT #[default]#[fg=color11]$right_arrow"
set -g @mode_indicator_sync_mode_style bg=color10,fg=color016,bold
set -g @mode_indicator_sync_prompt " SYNC #[default]#[fg=color8]$right_arrow"
set -g default-terminal "tmux-256color"
set -g message-style bg=color237,fg=color6
set -g pane-base-index 1
set -g renumber-windows on
set -g status on
set -g status-bg $bg_color
set -g status-fg color004
set -g status-interval 5
set -g status-justify absolute-centre
set -g status-position bottom
set -g status-left "#{tmux_mode_indicator}"
set -ag status-left ' #(cat #{socket_path}-\#{session_id}-vimbridge)'
set -g status-left-length 90
set -g status-right '#(cat #{socket_path}-\#{session_id}-vimbridge-R)'
set -ag status-right " #[fg=color004]$left_arrow"
set -ag status-right "#[bg=color004,fg=color016,bold] %I:%M %p "
set -g status-right-length 90
set -g window-status-activity-style bg=color008
set -ag window-status-activity-style fg=color6
set -g window-status-format "#[bg=$bg_color ,fg=color8]$left_arrow"
set -ag window-status-format "#[bg=color8,fg=color15]#W"
set -ag window-status-format "#[bg=$bg_color,fg=color8]$right_arrow"
set -g window-status-current-format "#[bg=$bg_color,fg=color004]$left_arrow"
set -ag window-status-current-format "#[bg=color004,fg=color000]#W"
set -ag window-status-current-format "#[bg=$bg_color,fg=color004]$right_arrow"
set-window-option -g display-panes-time 1500
set-window-option -g other-pane-height 25
set-window-option -g other-pane-width 80
####################
# Keyboard Shortcuts
####################
bind R source-file ~/.tmux.conf
bind J resize-pane -D 10
bind K resize-pane -U 10
bind H resize-pane -L 10
bind L resize-pane -R 10
bind X killw
bind x killp
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'