From c3bed7e17458a69b86e107d60e44ebec9a7c6830 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 7 Feb 2017 12:14:20 -0500 Subject: [PATCH] PS1.sh: make it a bit more readable and support android target info --- .profile.d/PS1.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5