Hi Ko, Have you set up your hostname in /etc/hostname if you haven't donw so you can do it by emitting the following command #echo your hostname > /etc/hostname A Qui, 2004-01-29 às 23:35, Ko Pu escreveu: > >>>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]$ > >>> > >>>Thanks in advance for your comment/suggestion > >>> > >>>Ko Fei Pu > >>>mailto:ko_pu@xxxxxxxxxxxxxxxxx > >>> > >>> > >> > >>I always put the following line in my ~/.bashrc > >> > >> PS1=`echo "("'${PWD}'") "` > >> > >>Works for me. > >> > >>Greeting, Niels. > >> > >> > > > >Took me a bit to crunch through that one... > > > >It's equivalent to: > > > > PS1='(${PWD})\$ ' > > > Thanks to all, I got it working, I didn't know that you could use ${PWD}, > the doc only mentioned \w or \W. But I still couldn't get rid of the ip > address, I would like to replace it with the server name and I replace it in > my /etc/sysconfig/network/HOSTNAME, but it still shows, any ideas? > > Thanks in advance for your comment/suggestion > > Ko Fei Pu > mailto:ko_pu@xxxxxxxxxxxxxxxxx > > _________________________________________________________________ > High-speed users?be more efficient online with the new MSN Premium Internet > Software. http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1 -- Telmo Silva <tsilva@xxxxxxxx>
Attachment:
signature.asc
Description: Esta =?ISO-8859-1?Q?=E9?= uma parte de mensagem assinada digitalmente