1
0
Fork 0

tmux: Add conditional for old tmux

This commit is contained in:
tastytea 2022-05-09 03:09:26 +02:00
parent 905300b48f
commit f1b5af8ce2
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 5 additions and 2 deletions

View File

@ -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-<up> 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}