From owner-freebsd-questions Wed May 27 16:38:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA04335 for freebsd-questions-outgoing; Wed, 27 May 1998 16:38:42 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from harfang.CC.UMontreal.CA (harfang.CC.UMontreal.CA [132.204.2.102]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA04004 for ; Wed, 27 May 1998 16:35:27 -0700 (PDT) (envelope-from beaupran@JSP.UMontreal.CA) Received: from epsom.jsp.umontreal.ca (epsom.JSP.UMontreal.CA [132.204.45.25]) by harfang.CC.UMontreal.CA (8.8.8/8.8.8) with SMTP id TAA10973; Wed, 27 May 1998 19:35:07 -0400 (EDT) Received: from outpost.nada.org (derby.jsp.umontreal.ca [132.204.46.26]) by epsom.jsp.umontreal.ca via SMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id TAA04997; Wed, 27 May 1998 19:35:17 -0400 Date: Wed, 27 May 1998 19:35:24 -0400 (EDT) From: Spidey X-Sender: beaupran@outpost.nada.org To: Charlie Root cc: Question=answer Subject: Re: your mail In-Reply-To: <199805271722.RAA00847@cc1003523-a.twsn1.md.home.com> 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 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. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > Spidey ____________________________________ | Still searching for a good .sig... | \------------------------------------/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message