From mboxrd@z Thu Jan 1 00:00:00 1970 From: Edward Parrilla Subject: Re: Set the prompt. Date: 03 Nov 2004 16:19:06 -0600 Message-ID: <1099520328.5008.1.camel@eparr1> References: <1099507968.4018.12.camel@eparr1> <3960.192.168.99.70.1099508659.squirrel@192.168.99.70> <3983.192.168.99.70.1099509153.squirrel@192.168.99.70> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3983.192.168.99.70.1099509153.squirrel@192.168.99.70> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: Linux_admin Hi, thanks for your answer. I found that what I have set works but when I logging through X-Window session; however it does not work if I go through an X-term or Term session. What is the difference. Thanks Edward On Wed, 2004-11-03 at 13:12, Scott Taylor wrote: > Scott Taylor said: > > > > Edward Parrilla said: > >> > >> PS1="{${HOSTNAME}"':${PWD}}' > >> export PS1 > > > > Try: > > > > man bash > > Look for PROMPTING > /PROMTING > > > I get: > > PS1="\h:\W " > > Sorry, that should be lower case 'W' "\h:\w " to get a full PWD with ~/ to > represent your home directory, but it gets very long that way. > > -- > Scott > - > To unsubscribe from this list: send the line "unsubscribe linux-admin" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html