bug fix for title_prompt in bash, use proper globs

This commit is contained in:
David Alexander Majnemer 2009-01-13 01:33:19 -06:00
parent a81da74751
commit 73028838e8

View file

@ -12,12 +12,12 @@ function do_prompt ()
fi
export PS1="\[\033[01;32m\]\u@\h \[\033[01;34m\]\w ${ERROR_PROMPT}${BASE} \[\033[00m\]"
[[ $TERM != "cons*" ]] && [[ $TERM != "linux" ]] &&
[[ $TERM != cons* ]] && [ $TERM != linux ] &&
echo -ne "\033]0;${USER}@${HOSTNAME}\007"
}
PROMPT_COMMAND=do_prompt
[[ $TERM != "cons*" ]] && [[ $TERM != "linux" ]] &&
[[ $TERM != cons* ]] && [ $TERM != linux ] &&
trap 'echo -e "\e]1;${USER}@${HOSTNAME}: $BASH_COMMAND\007\c"' DEBUG