From e8032e3ffb77f6ac59185f797ec8d0df221eeb5e Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Tue, 19 Oct 2021 22:11:18 +0200 Subject: [PATCH] set default-terminal to tmux-256color when available, fixes #205, fixes #382, closes #386 see https://github.com/tmux/tmux/wiki/FAQ#i-dont-see-italics-or-italics-and-reverse-are-the-wrong-way-round --- .tmux.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 97f6c23..e098c81 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -9,7 +9,9 @@ # -- general ------------------------------------------------------------------- -set -g default-terminal "screen-256color" # colors! +set -g default-terminal "screen-256color" +if 'infocmp -x tmux-256color > /dev/null 2>&1' 'set -g default-terminal "tmux-256color"' + setw -g xterm-keys on set -s escape-time 10 # faster command sequences set -sg repeat-time 600 # increase repeat timeout