tmux: Do not care about setting color scheme for old tmux versions

This does not work with latest tmux master so drop it anyways, we do not
care about old versions.
This commit is contained in:
Sanchayan Maity 2020-10-12 17:11:47 +05:30
parent b1698e9cf6
commit b3af70ced1

View file

@ -89,38 +89,13 @@ bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
set-option -g default-terminal "tmux-256color" set-option -g default-terminal "tmux-256color"
set-option -sa terminal-overrides ',tmux-256color:RGB' set-option -sa terminal-overrides ',tmux-256color:RGB'
run-shell 'tmux setenv -g TMUX_VERSION $(tmux -V | \ set-option -g status-style fg=colour187,bg=colour237
sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")' set-window-option -g window-status-style fg=colour187,bg=colour237
set-window-option -g window-status-current-style fg=colour161,bg='#000000'
if-shell -b '[ "$(echo "$TMUX_VERSION < 2.9" | bc)" = 1 ]' " \ set-option -g pane-border-style fg='#505050',bg='#101010'
set-option -g status-attr dim; \ set-option -g pane-active-border-style fg='#87d700',bg='#101010'
set-option -g status-bg colour237; \ set-option -g mode-style fg=colour187,bg='#000000'
set-option -g status-fg colour187; \ set-option -g message-style fg=colour187,bg='#000000'
set-window-option -g window-status-attr dim; \
set-window-option -g window-status-bg colour237; \
set-window-option -g window-status-fg colour187; \
set-window-option -g window-status-current-attr dim; \
set-window-option -g window-status-current-bg '#000000'; \
set-window-option -g window-status-current-fg colour161; \
set-option -g pane-active-border-bg '#101010'; \
set-option -g pane-active-border-fg '#87d700'; \
set-option -g pane-border-bg '#101010'; \
set-option -g pane-border-fg '#505050'; \
set-option -g mode-bg '#000000'; \
set-option -g mode-fg colour187; \
set-option -g message-bg '#000000'; \
set-option -g message-fg colour187; \
"
if-shell -b '[ "$(echo "$TMUX_VERSION > 2.9" | bc)" = 1 ]' " \
set-option -g status-style fg=colour187,bg=colour237; \
set-window-option -g window-status-style fg=colour187,bg=colour237; \
set-window-option -g window-status-current-style fg=colour161,bg='#000000'; \
set-option -g pane-border-style fg='#505050',bg='#101010'; \
set-option -g pane-active-border-style fg='#87d700',bg='#101010'; \
set-option -g mode-style fg=colour187,bg='#000000'; \
set-option -g message-style fg=colour187,bg='#000000'; \
"
# Set extrakto clip tool. Default is xclip. # Set extrakto clip tool. Default is xclip.
set -g @extrakto_clip_tool "xsel --input --clipboard" set -g @extrakto_clip_tool "xsel --input --clipboard"