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:
parent
b1698e9cf6
commit
b3af70ced1
1 changed files with 7 additions and 32 deletions
|
@ -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 -sa terminal-overrides ',tmux-256color:RGB'
|
||||
|
||||
run-shell 'tmux setenv -g TMUX_VERSION $(tmux -V | \
|
||||
sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")'
|
||||
|
||||
if-shell -b '[ "$(echo "$TMUX_VERSION < 2.9" | bc)" = 1 ]' " \
|
||||
set-option -g status-attr dim; \
|
||||
set-option -g status-bg colour237; \
|
||||
set-option -g status-fg colour187; \
|
||||
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-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 -g @extrakto_clip_tool "xsel --input --clipboard"
|
||||
|
|
Loading…
Reference in a new issue