Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] bash, $PS1

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Paul Mahon <dufflebunk AT dufflebunk.homeip.net>
  • To: sm-discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] bash, $PS1
  • Date: Wed, 04 Aug 2004 16:53:09 -0400

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@loki:~$
>
> However, if I move around a bit and cd to some dir I get something like
> this:
>
> basvg@loki:/home/basvg/work/projects$
>
> cd'ing back to $HOME then gives me, as was to be expected:
>
> basvg@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?
>
> Cheers
>
> Bas
>
>
> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss

Attachment: signature.asc
Description: This is a digitally signed message part



  • Re: [SM-Discuss] bash, $PS1, Paul Mahon, 08/04/2004

Archive powered by MHonArc 2.6.24.

Top of Page