From a1ff6cfea3ac7ac6a6ed15f01bd114549bc536d4 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Tue, 9 Aug 2022 22:38:16 +0800 Subject: [PATCH] bash: emit prompt markers, use more standard st for osc --- .bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 6531a93..7938df4 100644 --- a/.bashrc +++ b/.bashrc @@ -197,8 +197,8 @@ while [ -n "$LVLSTR" ];do esac LVLSTR=${LVLSTR#?} done -PS1="\[\033[01;32m\]\u@\h${ABDUCO_SESSION:+>$ABDUCO_SESSION}${STY:+>${STY#*\.}} \[\033[01;34m\]\W\[\033[31m\]\${?#0}\[\033[0m\]\\$ " -PS1="\[\033]2;$PS1AO\u@\h${ABDUCO_SESSION:+>$ABDUCO_SESSION}${STY:+>${STY#*\.}} \w\007\]$PS1A\[\033[0m\]$PS1" +PS1="\[\033]133;A\033\\\\\]\[\033[01;32m\]\u@\h${ABDUCO_SESSION:+>$ABDUCO_SESSION}${STY:+>${STY#*\.}} \[\033[01;34m\]\W\[\033[31m\]\${?#0}\[\033[0m\]\\$ " +PS1="\[\033]2;$PS1AO\u@\h${ABDUCO_SESSION:+>$ABDUCO_SESSION}${STY:+>${STY#*\.}} \w\033\\\\\]$PS1A\[\033[0m\]$PS1" export PTERM alias rssh="command ssh" alias ssh="env TERM=$PTERM ssh" -- 2.45.2