From 05cb3c1c64af1817de847d8f89903a1b4dda58d7 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 28 Oct 2020 14:16:32 +0100 Subject: [PATCH] [ADD][TMUX] Enable 24-bit true-color I need the correct TERM value, as well as the correct terminal overrides so that both color and italics work correctly. --- tmux/.config/tmux/tmux.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index 10d477b..0dd841a 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -5,6 +5,13 @@ set -g default-command "${SHELL}" bind-key -T copy-mode-vi 'v' send -X begin-selection bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel +# Use correct TERM for termcap info +set -g default-terminal "tmux-256color" +# Use 24bit true color +set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m' +# Compatibility settings +set-option -ga terminal-overrides ",tmux-256color-italic:Tc,xterm-256color-italic:Tc" + # Change where plugins are downloaded set-environment -g TMUX_PLUGIN_MANAGER_PATH '/home/ambroisie/.config/tmux/plugins/'