-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
66 lines (52 loc) · 2.21 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
set-window-option -g mode-keys vi
set-window-option -g xterm-keys on
# set -g default-terminal "screen-256color"
# set -ga terminal-overrides ",xterm-256color:Tc:sitm=\E[3m"
# set -ga terminal-overrides ",*256col*:Tc"
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
set -g prefix C-a # prefix key
set -g aggressive-resize on # aggressive resize
set -sg escape-time 0 # escape time
set -g base-index 1 # set initial window index to 1
set -g mouse off # enable mouse support
set -g bell-action none # disable bell
set-option -g focus-events on
set-option -g default-shell /bin/zsh
# Vim like copy & paste.
bind Escape copy-mode
bind p paste-buffer
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
# Status bar.
# set -g status-interval 1
# set -g window-status-format '#I:#(pwd="#{pane_current_path}"; echo ${pwd####*/})'
# set -g window-status-current-format '[#I:#(pwd="#{pane_current_path}"; echo ${pwd####*/})]'
# set -g status-right-length 120
set -g status-left ''
set -g status-right '' #'#(date +"%b %_d %H:%M") | #(whoami)@#(hostname -s) '
# set -g window-status-current-attr bold
set -g window-status-format "⋅"
set -g window-status-separator ' '
set -g window-status-current-format "•"
set -g status-justify centre
set -g status-left-length 0
set -g status-right-length 0
set -g window-status-style fg=cyan
set -g window-status-current-style fg=green,bg=default
set -g status-style bg=default
# set -g window-status-fg cyan #magenta
# set -g status-bg default
# set -g window-status-current-fg green #red
# set -g window-status-current-bg default
# Borders.
set -g pane-active-border-style fg=default,bg=default
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# set -g @plugin 'dracula/tmux'
run '~/.tmux/plugins/tpm/tpm'