From 174fcb2a7bbd406810b78d30ce91a3cc926dff15 Mon Sep 17 00:00:00 2001 From: Titouan Rigoudy Date: Wed, 15 Dec 2021 12:46:28 +0100 Subject: [PATCH] Support true colors and italics in tmux and vim. --- tmux.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tmux.conf b/tmux.conf index 359c5eb..95a46cd 100644 --- a/tmux.conf +++ b/tmux.conf @@ -21,8 +21,10 @@ bind h split-window -v # Enable vi-like key bindings for navigating around buffers. set-window-option -g mode-keys vi -# Force tmux to consider the enclosing terminal true-color-capable. -set -ga terminal-overrides ',screen-256color:Tc' +# Enable italics and true color. +# See https://herrbischoff.com/2020/08/how-to-enable-italics-in-tmux/. +set -g default-terminal "tmux" +set-option -sa terminal-overrides ',xterm*:Tc' # List of plugins set -g @plugin 'tmux-plugins/tpm'