From f1b5af8ce2c566ec37543a92b3e73745feac3c7d Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 9 May 2022 03:09:26 +0200 Subject: [PATCH] tmux: Add conditional for old tmux --- .tmux.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index ad4f7a4..bf5b386 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -18,7 +18,11 @@ set -g default-command "exec /bin/zsh" # Enable Truecolor set-option -ga terminal-overrides ",xterm*:RGB:Tc,rxvt-unicode*:RGB:Tc" +%if '#{>=:#{version},3.2}' set -ga terminal-features ",alacritty*:RGB" +%else +set -ga terminal-overrides ",alacritty*:Tc" +%endif set -g default-terminal "tmux-256color" # Make M- and so on work in Emacs. @@ -40,8 +44,7 @@ set -g mouse off tmux_colour_status1="colour61" # violet tmux_colour_status2="colour97" # dark pink tmux_colour_inactive="colour237" # dark grey -# NOTE: Prefix with %hidden since 3.2, but can't figure out how to do -# conditionally. Correct %if still complains. +# %hidden does not work with < 3.2, even if it's not accessible # Status line set -g status-style fg=${tmux_colour_status1}