>
> Personally I've never found any use for PROMPT_COMMAND.  It seems klunky
> and awkward.
>

My PS1 depends much on PROMPT_COMMAND. For example, my PROMPT_COMMAND will
trim very long $PWD to a shorter one (depends on the window size of current
terminal):

[r...@server ~/directory/loooooooong/very/a/is/this] #    ---->
[r...@server ~/.../very/a/is/this] #

Bash 4.0 introduces a new similar feature via var PROMPT_DIRTRIM.

-Clark

Reply via email to