From owner-freebsd-newbies Wed Aug 12 08:08:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA08731 for freebsd-newbies-outgoing; Wed, 12 Aug 1998 08:08:46 -0700 (PDT) (envelope-from owner-freebsd-newbies@FreeBSD.ORG) Received: from superior.mooseriver.com (superior.mooseriver.com [208.138.27.81]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA08726 for ; Wed, 12 Aug 1998 08:08:43 -0700 (PDT) (envelope-from jgrosch@superior.mooseriver.com) Received: (from jgrosch@localhost) by superior.mooseriver.com (8.8.8/8.8.8) id IAA19175; Wed, 12 Aug 1998 08:08:09 -0700 (PDT) (envelope-from jgrosch) Message-ID: <19980812080808.C19033@mooseriver.com> Date: Wed, 12 Aug 1998 08:08:08 -0700 From: Josef Grosch To: Peihan Wang , freebsd-newbies@FreeBSD.ORG Subject: Re: PS1 (command line prompt) in .profile Reply-To: jgrosch@mooseriver.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Peihan Wang on Wed, Aug 12, 1998 at 09:57:44PM +0800 Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Aug 12, 1998 at 09:57:44PM +0800, Peihan Wang wrote: > > Hello , gurus ! > > I am using bash (version: 2.01) on my 2.2.6 box. > I put the following line in my .profile: > > PS1='`pwd`$ ' > > It works well in console mode, But after I start X > it does not take any effect in xterm. By the way, > I am using lesstif as my window manager. I do not > know what to do :-( Read your man page. Bash uses 2 init file, .bashrc and .bash_profile. .bash_profile gets run when you first login. .bashrc get run for each term that your account/process create. So in your .bash_profile you would have the line export PS1='`pwd`$ ' That should do it Josef -- Josef Grosch | Another day closer to a | FreeBSD 2.2.7 jgrosch@MooseRiver.com | Micro$oft free world | UNIX for the masses To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message