From owner-freebsd-questions Wed May 27 14:23:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA04568 for freebsd-questions-outgoing; Wed, 27 May 1998 14:23:20 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cc1003523-a.twsn1.md.home.com (cc1003523-a.twsn1.md.home.com [24.3.4.78]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA04432 for ; Wed, 27 May 1998 14:22:52 -0700 (PDT) (envelope-from root@cc1003523-a.twsn1.md.home.com) Received: (from root@localhost) by cc1003523-a.twsn1.md.home.com (8.8.8/8.8.8) id RAA00847 for freebsd-questions@FreeBSD.ORG; Wed, 27 May 1998 17:22:19 GMT (envelope-from root) Date: Wed, 27 May 1998 17:22:19 GMT From: Charlie Root Message-Id: <199805271722.RAA00847@cc1003523-a.twsn1.md.home.com> To: undisclosed-recipients:; Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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