From mboxrd@z Thu Jan 1 00:00:00 1970 From: Helge Pettersen Subject: Re: Set the prompt. Date: Wed, 3 Nov 2004 20:08:22 +0100 Message-ID: References: <1099507968.4018.12.camel@eparr1> <3960.192.168.99.70.1099508659.squirrel@192.168.99.70> Reply-To: Helge Pettersen Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3960.192.168.99.70.1099508659.squirrel@192.168.99.70> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-admin@vger.kernel.org No, Edward wanted `pwd` as the prompt. \W provides only the open folder, not full path. (which \w is). On Wed, 3 Nov 2004 11:04:19 -0800 (PST), Scott Taylor wrote: > > > > 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 > > > - > 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 >