Skip to Content.
Sympa Menu

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

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Bas van Gils <Bas.vanGils AT cs.kun.nl>
  • To: Discuss-list <sm-discuss AT lists.ibiblio.org>
  • Subject: [SM-Discuss] bash, $PS1
  • Date: Sun, 25 Jul 2004 11:43:07 +0200


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


--
drs. Bas van Gils <Bas.vanGils AT cs.kun.nl> | /(bb|[^b]{2})/
http://www.cs.kun.nl/~basvg | that's the question
PGP = 3805 664A F24E 90D5 6A77 C624 E13D 0440 2768 A493 |

Attachment: pgpLgoVWMbWuN.pgp
Description: PGP signature



  • [SM-Discuss] bash, $PS1, Bas van Gils, 07/25/2004

Archive powered by MHonArc 2.6.24.

Top of Page