From 3503f52b7a4b1f8cf128a0f49e97927e30506496 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 26 Apr 2021 01:34:24 +0300 Subject: [PATCH] Fix(bash_prompt): Fix xterm title/icon under `screen` --- admin/prog/bash_prompt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/prog/bash_prompt b/admin/prog/bash_prompt index 02141e3..2244571 100644 --- a/admin/prog/bash_prompt +++ b/admin/prog/bash_prompt @@ -108,9 +108,10 @@ set_prompts() { # in the terminal title case "$TERM" in *rxvt*|screen*|*term*|vt100) - OPS1+="\[\033]0;${_COMMON_PROMPT}\007\]" + OPS1="\[\033]0;${_COMMON_PROMPT}\007\]" # Set xterm title/icon case "$TERM" in screen*) + OPS1="\[\033P\033]0;${_COMMON_PROMPT}\007\033\\\\\]" # Set xterm title/icon under screen/tmux OPS1+="\[\033k${_COMMON_PROMPT}\033\\\\\]" # Set screen/tmux caption ;; esac -- 2.39.5