Click to See Complete Forum and Search --> : Problem: Bash Prompt


roamingnomad
12-08-2003, 06:14 PM
I changed my bash prompt, and now this is the line in my .bashrc:

PS1="[\u@\h \W]\$ "

That's good, but in my home dir the prompt displays like this:

[roamingnomad@shadow roamingnomad]$

Shouldn't bash replace the name of my home dir, roamingnomad, with a "~"???

ciphrix
12-08-2003, 06:17 PM
Try using a lowercase "w" instead, so...

PS1="[\u@\h \w]\$ "

That should work.