From: Oleg Broytman Date: Sun, 25 Apr 2021 22:34:24 +0000 (+0300) Subject: Fix(bash_prompt): Fix xterm title/icon under `screen` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=3503f52b7a4b1f8cf128a0f49e97927e30506496;p=dotfiles.git Fix(bash_prompt): Fix xterm title/icon under `screen` --- 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