From 55e040426f8f06cdbce11390121b1088b206a063 Mon Sep 17 00:00:00 2001 From: Lifepillar Date: Fri, 8 Mar 2019 10:04:56 +0100 Subject: [PATCH] Add tmux fix to script template. --- templates/_fix-256-palette.colortemplate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/_fix-256-palette.colortemplate b/templates/_fix-256-palette.colortemplate index a1a3007..a1d4e21 100644 --- a/templates/_fix-256-palette.colortemplate +++ b/templates/_fix-256-palette.colortemplate @@ -17,7 +17,7 @@ if [ "${TERM%%-*}" = 'linux' ]; then return 2>/dev/null || exit 0 fi -if [ -n "$TMUX" ]; then +if [[ "$TERM" =~ "^(tmux|screen).*" && -n "$TMUX" ]]; then # tell tmux to pass the escape sequences through # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324) printf_template="\033Ptmux;\033\033]4;%d;rgb:%s\007\033\\"