[SM-Discuss] bash, $PS1
dufflebunk at dufflebunk.homeip.net
Wed Aug 4 16:53:09 EDT 2004
That's a bug in bash. Which is, incidentaly, fixed in 3.0. You could put
in $(pwd) instead of \w if it really bugs you.
On Sun, 2004-25-07 at 11:43 +0200, Bas van Gils wrote:
> Hi all,
> I've been wondering about my prompt... After the reinstall of my work-box, I
> still had my old homedir available so I didn't have to create a new .bashrc
> and such. I have defined my prompt as follows:
> export PS1='\[\033[01;31m\]\u@\h:\[\033[01;34m\]\w\$ \[\033[00m\]'
> And when I first log in the prompt I see is indeed:
> basvg at loki:~$
> However, if I move around a bit and cd to some dir I get something like this:
> basvg at loki:/home/basvg/work/projects$
> cd'ing back to $HOME then gives me, as was to be expected:
> basvg at loki:/home/basvg$
> Even though this is just a `small inconvenience', it's been bugging me for a
> few days now. I have no idea why this doesn't work. It used to! Can anyone
> help me out?
> SM-Discuss mailing list
> SM-Discuss at lists.ibiblio.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ibiblio.org/pipermail/sm-discuss/attachments/20040804/e27bb522/attachment.bin
More information about the SM-Discuss