Re: newbie PS1 config question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Am So, den 25.01.2004 schrieb Ko Pu um 18:41:
> 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.

~ means home directory. If you want to have pwd output so just use it.
Read for detailed instructions the bash prompt howto:

> 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@d209-121-129-174 Linux]$

Edit /etc/sysconfig/network -> HOSTNAME

> Thanks in advance for your comment/suggestion
> Ko Fei Pu
> mailto:ko_pu@xxxxxxxxxxxxxxxxx


Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2149.nptl
Sirendipity 18:47:57 up 1 day, 2:26, load average: 0.35, 0.15, 0.16 
                   [ ÎÎÏÎÎ Ï'ÎÏÏÎÎ - gnothi seauton ]

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux