bash: $PS1 does not update with popd

linq936_at_hotmail.com
Date: 05/19/05


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.



Relevant Pages

  • Re: Dropping DTR to access command mode during ppp session
    ... Then at the root prompt, ... Type your AT commands, and then hit ~. ... >According to the modem manual, dropping DTR will put the modem into ... Here's what I worry about. ...
    (freebsd-questions)
  • Re: Process Idle Time
    ... I basically want to know if the prompt is busy in any way. ... >> file in turn invokes several executables. ... it depends on what sorts of commands are used in the BAT or CMD file. ...
    (microsoft.public.win32.programmer.kernel)
  • [opensuse] Help installing openSUSE 10.2
    ... of the boot commands identified as runlevel 3. ... On boot screen use Other Options and enter 3 and press Enter to ... boot into runlevel 3, which is text mode with network. ... If computer gives you text mode login prompt enter user name, ...
    (SuSE)
  • RE: can someone help me with error code: 0x80070715? I cant update wi
    ... The specified resource type cannot be found in the image file. ... Try installing the latest Version of the Windows Update Agent by ... IF this is Vista you and you need to run the commands from a Command ... Prompt, locate 'cmd' from Start Search and then *right* click it, choose ...
    (microsoft.public.windowsupdate)
  • Re: [opensuse] Konsole problems
    ... Most likely there's a problem with your PS1 string. ... the prompt string that do not yield visible characters must be ... and subsequently send incorrect positioning commands. ... In my shell, it's a shell procedure ...
    (SuSE)