On 10/19/05, Bruce Dubbs <[EMAIL PROTECTED]> wrote:
> It is meant to be an *example*, not blindly used.  If you have a
> specific suggestion on how to change the wording or the example, let's
> discuss it more.

It's great that there's an example included, but the problem with this
example is that if you follow the book to the letter (as you probably
would if this was your first cut at BLFS) then you'll think something
is broken in your prompt.  So, it might be more useful if you had
something like

case $TERM in
    xterm*)
        PROMPT_COMMAND='echo -ne "\033]0;[EMAIL PROTECTED] : ${PWD}\007"'
    *)
        PROMPT_COMMAND='echo -ne "[$(date +%r)]"'
esac
export PROMPT_COMMAND

This really shows how PROMPT_COMMAND can add to PS1 and should work
straight from the book.

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to