2018-02-05 18:25:14 +00:00
|
|
|
|
2019-01-30 08:12:45 +00:00
|
|
|
set-option -sg escape-time 9
|
2019-01-11 18:13:34 +00:00
|
|
|
|
2018-02-05 18:25:14 +00:00
|
|
|
# switch panes using Alt-arrow without prefix
|
|
|
|
bind -n M-Left select-pane -L
|
|
|
|
bind -n M-Right select-pane -R
|
|
|
|
bind -n M-Up select-pane -U
|
|
|
|
bind -n M-Down select-pane -D
|
|
|
|
|
2022-09-06 17:37:37 +00:00
|
|
|
# open windows at current path
|
|
|
|
bind '"' split-window -c "#{pane_current_path}"
|
|
|
|
bind % split-window -h -c "#{pane_current_path}"
|
|
|
|
bind c new-window -c "#{pane_current_path}"
|
|
|
|
|
2022-05-26 23:20:46 +00:00
|
|
|
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
|
|
|
|
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
|
|
|
|
|
2018-02-05 18:25:14 +00:00
|
|
|
# Enable mouse mode (tmux 2.1 and above)
|
2021-12-08 17:27:01 +00:00
|
|
|
set -g mouse on
|
2019-08-22 21:15:43 +00:00
|
|
|
|
2020-06-17 07:54:50 +00:00
|
|
|
# only this line might not be enough
|
|
|
|
set -g default-terminal "tmux-256color"
|
|
|
|
# Needs this line also to overrides the default color
|
|
|
|
set-option -ga terminal-overrides ",xterm-256color:Tc"
|
|
|
|
|
2022-09-06 16:21:03 +00:00
|
|
|
# Github colors for Tmux
|
2018-02-05 18:25:14 +00:00
|
|
|
|
2022-09-06 16:42:56 +00:00
|
|
|
set -g mode-style "fg=#24292f,bg=colour255"
|
2018-02-05 18:25:14 +00:00
|
|
|
|
2022-09-06 16:42:56 +00:00
|
|
|
set -g message-style "fg=#24292f,bg=colour255"
|
|
|
|
set -g message-command-style "fg=#24292f,bg=colour255"
|
2018-02-05 18:25:14 +00:00
|
|
|
|
2022-09-06 16:21:03 +00:00
|
|
|
set -g pane-border-style "fg=#e1e4e8"
|
|
|
|
set -g pane-active-border-style "fg=#0366d6"
|
2018-02-05 18:25:14 +00:00
|
|
|
|
2022-09-06 16:21:03 +00:00
|
|
|
# status line
|
|
|
|
set -g status "on"
|
|
|
|
set -g status-justify "left"
|
|
|
|
set -g status-interval "5"
|
2018-02-05 18:25:14 +00:00
|
|
|
set-option -g status-position top
|
|
|
|
|
2022-09-06 16:42:56 +00:00
|
|
|
set -g status-style "fg=#0366d6,bg=colour255"
|
2018-02-05 18:25:14 +00:00
|
|
|
|
2022-09-06 16:21:03 +00:00
|
|
|
set -g status-left-style NONE
|
|
|
|
set -g status-right-style NONE
|
2018-02-05 18:25:14 +00:00
|
|
|
|
2022-09-06 16:21:03 +00:00
|
|
|
set -g status-left ''
|
2022-09-06 16:37:13 +00:00
|
|
|
set -g status-right '#[fg=colour233,bg=colour252,bold] #(uptime | rev | cut -d":" -f1 | rev | sed s/,//g) #[fg=colour233,bg=colour245,bold] %H:%M '
|
2018-02-05 18:25:14 +00:00
|
|
|
|
2022-09-06 16:42:56 +00:00
|
|
|
setw -g window-status-activity-style "underscore,fg=#586069,bg=colour255"
|
2022-09-06 16:21:03 +00:00
|
|
|
setw -g window-status-separator ""
|
2022-09-06 16:42:56 +00:00
|
|
|
setw -g window-status-style "NONE,fg=#ffffff,bg=colour255"
|
|
|
|
setw -g window-status-format "#[fg=#666666,bg=colour255,nobold,nounderscore,noitalics] #I: #W #F #[fg=colour255,bg=colour255,nobold,nounderscore,noitalics]"
|
|
|
|
setw -g window-status-current-format "#[fg=#24292e,bg=#babbbd,bold] #I: #W #F #[fg=#babbbd,bg=colour255,nobold,nounderscore,noitalics]"
|
2018-02-05 18:25:14 +00:00
|
|
|
|
2020-07-24 09:17:57 +00:00
|
|
|
|
2022-09-06 16:21:03 +00:00
|
|
|
# loud or quiet?
|
|
|
|
set-option -g visual-activity off
|
|
|
|
set-option -g visual-bell off
|
|
|
|
set-option -g visual-silence off
|
|
|
|
set-window-option -g monitor-activity off
|
|
|
|
set-option -g bell-action none
|
2018-02-05 18:25:14 +00:00
|
|
|
|
2019-01-11 20:25:02 +00:00
|
|
|
if '[ -f ~/.tmux.conf.local ]' 'source ~/.tmux.conf.local'
|