From dfa0b0b193cb91fd6151568bb1ad577743450b47 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 26 Apr 2021 19:18:59 +0300 Subject: [PATCH] Refactor(bash_prompt): Reuse `$PS1` --- admin/prog/bash_prompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/prog/bash_prompt b/admin/prog/bash_prompt index 8c3a9fe..a605602 100644 --- a/admin/prog/bash_prompt +++ b/admin/prog/bash_prompt @@ -115,7 +115,7 @@ set_prompts() { PS1="\033]0;${_COMMON_PROMPT}\007" # Set xterm title/icon case "$TERM" in screen*) - PS1="\033P\033]0;${_COMMON_PROMPT}\007\033\\\\" # Set xterm title/icon under screen/tmux + PS1="\033P${PS1}\033\\\\" # Set xterm title/icon under screen/tmux if [ -z "$MC_SID" ]; then PS1+="\033k${_COMMON_PROMPT}\033\\\\" # Set screen/tmux caption fi -- 2.39.5