remove title_prompt

This commit is contained in:
David Alexander Majnemer 2009-01-13 18:23:37 -05:00
parent ce6b097dbc
commit 45e911cf6c

View file

@ -1,23 +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\]"
[[ $TERM != cons* ]] && [ $TERM != linux ] &&
echo -ne "\033]0;${USER}@${HOSTNAME}\007"
}
PROMPT_COMMAND=do_prompt
[[ $TERM != cons* ]] && [ $TERM != linux ] &&
trap 'echo -e "\e]1;${USER}@${HOSTNAME}: $BASH_COMMAND\007\c"' DEBUG