From 05fa0b8255051e15def5845534f231495eedff7f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 12 Jun 2020 18:38:26 -0400 Subject: [PATCH] PS1: shorten slightly & add PS0 recovery --- .profile.d/PS1.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.profile.d/PS1.sh b/.profile.d/PS1.sh index c0aa6d9..5f9b765 100644 --- a/.profile.d/PS1.sh +++ b/.profile.d/PS1.sh @@ -5,8 +5,12 @@ if [ "${TERM}" != "dumb" ] ; then PS1+="(sdk ${SDK_BOARD} ${SDK_VERSION}) " fi # The cat here affects the exit code after this assignment. - PS1+='\[\e[0;33m\]\u\[\e[30;1m\]@\[\e[31;1m\]\h'\ + PS1+='\[\e[33m\]\u\[\e[30;1m\]@\[\e[31;1m\]\h'\ $(cat /etc/ps1_append 2>/dev/null || :)\ "${TARGET_PRODUCT+ {${TARGET_PRODUCT}\}}"\ -'\[\e[30;1m\] \j:$? \[\e[34;1m\]\W \$\[\e[0m\] ' +'\[\e[30;1m\] \j:$? \[\e[34;1m\]\W \$\[\e[m\] ' + + # PS0 is displayed after the current prompt but before the command. + # Reset any latent colors. + PS0='\e[m' fi -- 2.39.5