]> git.wh0rd.org - home.git/blob - .profile.d/PS1.sh
PS1.sh: fix exit code
[home.git] / .profile.d / PS1.sh
1 if [ "${TERM}" != "dumb" ] ; then
2 PS1=
3 if [ -n "${SDK_VERSION}" ] ; then
4 PS1+="(sdk ${SDK_BOARD} ${SDK_VERSION}) "
5 fi
6 # The cat here affects the exit code after this assignment.
7 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\] '
8 fi