From b3af70ced165148855af02d0320d7047a5f0266c Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Mon, 12 Oct 2020 17:11:47 +0530 Subject: [PATCH] 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. --- tmux/.tmux.conf | 39 +++++++-------------------------------- 1 file changed, 7 insertions(+), 32 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index cce023d..1b582c4 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -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"