|
From: | Clark J. Wang |
Subject: | Re: How to run something before invoking the inputted command? |
Date: | Tue, 13 Jul 2010 11:19:34 +0800 |
> > 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): [root@server ~/directory/loooooooong/very/a/is/this] # ----> [root@server ~/.../very/a/is/this] # Bash 4.0 introduces a new similar feature via var PROMPT_DIRTRIM. -Clark
[Prev in Thread] | Current Thread | [Next in Thread] |