From: Oleg Broytman Date: Mon, 26 Apr 2021 16:18:59 +0000 (+0300) Subject: Refactor(bash_prompt): Reuse `$PS1` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=dfa0b0b193cb91fd6151568bb1ad577743450b47;p=dotfiles.git Refactor(bash_prompt): Reuse `$PS1` --- 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