[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Evaluate expression every time directory changes
From: |
bash_user |
Subject: |
Re: Evaluate expression every time directory changes |
Date: |
Fri, 29 Jun 2007 08:21:27 -0700 (PDT) |
That is correct.
I would like to understand what triggers the shell to re-evaluate
PROMPT_COMMAND every time
directory / clock change occur.
THANKS FOR REPLY!
Dave Rutherford-2 wrote:
>
> On 6/28/07, bash_user <babypokupki@yahoo.com> wrote:
>> Lets say I would like to update environment variable based on ${PWD}
>> should I clobber my prompt generation routine or there is a better way.
>
> Something like this?
>
> PROMPT_COMMAND='eval NEWPWD="\$PWD"'
>
> Dave
>
>
> _______________________________________________
> Bug-bash mailing list
> Bug-bash@gnu.org
> http://lists.gnu.org/mailman/listinfo/bug-bash
>
>
--
View this message in context:
http://www.nabble.com/Evaluate-expression-every-time-directory-changes-tf3996206.html#a11362032
Sent from the Gnu - Bash mailing list archive at Nabble.com.