Add tmux fix to script template.

This commit is contained in:
Lifepillar
2019-03-08 10:04:56 +01:00
parent 111e0deb83
commit 55e040426f

View File

@@ -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\\"