X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;ds=sidebyside;f=.profile.d%2FPS1.sh;h=5f9b765baa37d6c4942c74e9a879f60c45eedf60;hb=05fa0b8255051e15def5845534f231495eedff7f;hp=6407b9322304f7f0ec56d78772c646506388c3db;hpb=c3bed7e17458a69b86e107d60e44ebec9a7c6830;p=home.git diff --git a/.profile.d/PS1.sh b/.profile.d/PS1.sh index 6407b93..5f9b765 100644 --- a/.profile.d/PS1.sh +++ b/.profile.d/PS1.sh @@ -1,12 +1,16 @@ if [ "${TERM}" != "dumb" ] ; then # Set the terminal's window title. - PS1='\[\e]0;\u@\h \w\007\]' + PS1='\[\e(B\017\e]0;\u@\h \w\007\]' if [ -n "${SDK_VERSION}" ] ; 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