Date: Fri, 29 May 1998 07:34:05 -0400 (EDT) From: Spidey <beaupran@JSP.UMontreal.CA> To: Jeremy Shaffner <jer@jorsm.com> Cc: Charlie Root <root@cc1003523-a.twsn1.md.home.com>, Question=answer <freebsd-questions@FreeBSD.ORG> Subject: Re: your mail Message-ID: <Pine.BSF.3.96.980529073342.585A-100000@outpost.nada.org> In-Reply-To: <Pine.BSF.3.95q.980528154003.14408D-100000@mercury.jorsm.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 28 May 1998, Jeremy Shaffner wrote: > > Isn't that somewhat...cumbersome? > > (for sh) Sorry, I'm using tcsh... > 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 > -===================================================================- > > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980529073342.585A-100000>