bash: $PS1 does not update with popd
linq936_at_hotmail.com
Date: 05/19/05
- Next message: Janis Papanagnou: "Re: last character of the last line is a newline?"
- Previous message: Icarus Sparry: "Re: how to check if an ip-adr meets a ceartain range"
- Next in thread: Icarus Sparry: "Re: bash: $PS1 does not update with popd"
- Reply: Icarus Sparry: "Re: bash: $PS1 does not update with popd"
- Reply: Chris F.A. Johnson: "Re: bash: $PS1 does not update with popd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 19 May 2005 09:36:17 -0700
Hi,
Here is how I define the prompt,
export PS1=`echo ${HOST}`":"`echo $cwd|sed -e "s/^.*tmp_mnt//" -e
"s/^.*users*/\/user/" -e "s/^.*${USER}\/*//"`">"
This is very good in that the prompt updates when I change directory.
But now I find that this does not work when I use "pushd" and "popd"
commands. After the "popd" command, prompt does not update.
Do you know how to fix this?
Thanks.
- Next message: Janis Papanagnou: "Re: last character of the last line is a newline?"
- Previous message: Icarus Sparry: "Re: how to check if an ip-adr meets a ceartain range"
- Next in thread: Icarus Sparry: "Re: bash: $PS1 does not update with popd"
- Reply: Icarus Sparry: "Re: bash: $PS1 does not update with popd"
- Reply: Chris F.A. Johnson: "Re: bash: $PS1 does not update with popd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|