From: "Scott Taylor" Subject: Re: Set the prompt. Date: Wed, 3 Nov 2004 11:04:19 -0800 (PST) Message-ID: <3960.192.168.99.70.1099508659.squirrel@192.168.99.70> References: <1099507968.4018.12.camel@eparr1> Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: In-Reply-To: <1099507968.4018.12.camel@eparr1> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: Linux_admin Edward Parrilla said: > Hi all, > I have created this line in my .bash_profile > > PS1="{${HOSTNAME}"':${PWD}}' > export PS1 > > However when I initiate my term session it does not show the host name, > nor the PWD. > What could be wrong? Probably. Try: man bash I get: PS1="\h:\W " to get the output you desire. Your way looks more like the old Korn Shell (ksh), almost. I like: PS1="[\u@\h \W]\\$ " (RH default, something they did right. ;) -- Scott