]> git.phdru.name Git - dotfiles.git/commitdiff
Refactor(bash_prompt): Reuse `$PS1`
authorOleg Broytman <phd@phdru.name>
Mon, 26 Apr 2021 16:18:59 +0000 (19:18 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 26 Apr 2021 16:18:59 +0000 (19:18 +0300)
admin/prog/bash_prompt

index 8c3a9fe29612c4827ae1d868d0cf819395d727eb..a60560240e3d53c8e5901ee5de4450a353432077 100644 (file)
@@ -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