]> git.wh0rd.org - home.git/blame - .profile.d/PS1.sh
cros-board: update
[home.git] / .profile.d / PS1.sh
CommitLineData
30a4d2d3 1if [ "${TERM}" != "dumb" ] ; then
6a02071f 2 # Set the terminal's window title.
abaa55ed 3 PS1='\[\e(B\017\e]0;\u@\h \w\007\]'
30a4d2d3
MF
4 if [ -n "${SDK_VERSION}" ] ; then
5 PS1+="(sdk ${SDK_BOARD} ${SDK_VERSION}) "
6 fi
7650be35 7 # The cat here affects the exit code after this assignment.
05fa0b82 8 PS1+='\[\e[33m\]\u\[\e[30;1m\]@\[\e[31;1m\]\h'\
c3bed7e1
MF
9$(cat /etc/ps1_append 2>/dev/null || :)\
10"${TARGET_PRODUCT+ {${TARGET_PRODUCT}\}}"\
05fa0b82
MF
11'\[\e[30;1m\] \j:$? \[\e[34;1m\]\W \$\[\e[m\] '
12
13 # PS0 is displayed after the current prompt but before the command.
14 # Reset any latent colors.
15 PS0='\e[m'
30a4d2d3 16fi