From owner-freebsd-questions Thu May 28 13:53:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA23684 for freebsd-questions-outgoing; Thu, 28 May 1998 13:53:03 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mercury.jorsm.com (mercury.jorsm.com [207.112.128.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA23644 for ; Thu, 28 May 1998 13:52:46 -0700 (PDT) (envelope-from jer@jorsm.com) Received: from localhost (jer@localhost) by mercury.jorsm.com (8.8.7/8.8.7) with SMTP id PAA22105; Thu, 28 May 1998 15:52:39 -0500 (CDT) Date: Thu, 28 May 1998 15:52:39 -0500 (CDT) From: Jeremy Shaffner To: Spidey cc: Charlie Root , Question=answer Subject: Re: your mail In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Isn't that somewhat...cumbersome? (for sh) PS1="\u@\h:\w\$ " login@host:currentdirectory$ etc.. On Wed, 27 May 1998, Spidey wrote: > Presuming you're using csh, make an alias like: > > alias cd = cd \!* ; set prompt="$cwd#" > > or something like that... > > try and check you shells's manpage. (i.e. man csh) > > Spidey > > > > On Wed, 27 May 1998, Charlie Root wrote: > > > I have a problem with my shell prompt. > > I want to set it so that it will show the directory I am currently in. > > I have tried to do this with: > > > > set prompt="`pwd`#" > > > > All seems fine until I switch directories, and the directory listed on the prompt stays the same. > > > > I.E. I am in "/root" but the prompt says "/usr/bin#". > > > > I am using the sh shell and I am wondering if there is a way to get it to do > > "pwd" each time before the prompt appears so that it will always reflect my > > current directory. > > -===================================================================- Jeremy Shaffner JORSM Internet Senior Technical Support Northwest Indiana's Premium jer@jorsm.com Internet Service Provider support@jorsm.com http://www.jorsm.com -===================================================================- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message