]> git.wh0rd.org - home.git/blobdiff - .profile.d/PS1.sh
pinentry: switch to x11 as gtk-2 is dead
[home.git] / .profile.d / PS1.sh
index 55f7718604e9b40d415da873a70818900374420d..c0aa6d91c5a8bbef3bb5ca40c1a4ebc340ce8653 100644 (file)
@@ -1,9 +1,12 @@
 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'$(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