From: Mike Frysinger Date: Tue, 7 Feb 2017 17:14:20 +0000 (-0500) Subject: PS1.sh: make it a bit more readable and support android target info X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c3bed7e17458a69b86e107d60e44ebec9a7c6830;p=home.git PS1.sh: make it a bit more readable and support android target info --- diff --git a/.profile.d/PS1.sh b/.profile.d/PS1.sh index 55f7718..6407b93 100644 --- a/.profile.d/PS1.sh +++ b/.profile.d/PS1.sh @@ -5,5 +5,8 @@ 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'$(cat /etc/ps1_append 2>/dev/null || :)'\[\e[30;1m\] \j:$? \[\e[34;1m\]\W \$\[\e[0m\] ' + PS1+='\[\e[0;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\] ' fi