newbie PS1 config question

Niels Roetert fedora-list at roetert.dyndns.org
Sun Jan 25 20:59:47 UTC 2004


On Sun, 2004-01-25 at 18:41, Ko Pu wrote:
> PS1 question:
> How can I change the PS to display the current directory? According to 
> documentation, the \w should show the current directory, but when I used it, 
> it showed ~, what I'm looking for is to display info similar to pwd.
> 
> prompt question:
> I'm using dsl modem, so the ip address is dynamic, and the prompt showed the 
> ip address, how can I change it to my computer name? I added it to my 
> /etc/host but I still got the ip address. This is what I have in my prompt.
> [kpu at d209-121-129-174 Linux]$
> 
> Thanks in advance for your comment/suggestion
> 
> Ko Fei Pu
> mailto:ko_pu at nospamhotmail.com
> 
> _________________________________________________________________
> Scope out the new MSN Plus Internet Software  optimizes dial-up to the max! 
>    http://join.msn.com/?pgmarket=en-us&page=byoa/plus&ST=1
> 

I always put the following line in my ~/.bashrc

	PS1=`echo "("'${PWD}'") "`

Works for me.

Greeting, Niels.





More information about the fedora-list mailing list