bash prompt is replace with title_prompt

This commit is contained in:
David Alexander Majnemer 2009-01-14 22:16:34 -05:00
parent a1633359b8
commit 87163d8a9e

View file

@ -1,16 +0,0 @@
function do_prompt ()
{
if [ $? -ne 0 ] ; then
local ERROR_PROMPT="\[\033[01;31m\]"
fi
local BASE
if [ $UID -ne 0 ] ; then
BASE="$"
else
BASE="#"
fi
export PS1="\[\033[01;32m\]\u@\h \[\033[01;34m\]\w ${ERROR_PROMPT}${BASE} \[\033[00m\]"
}
PROMPT_COMMAND=do_prompt