Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jan 2002 17:24:01 +0100
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Julio Merino <juli@klamath.local>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Some /bin/sh questions
Message-ID:  <20020102162401.GA35605@student.uu.se>
In-Reply-To: <20020102171148.A45897@klamath.local>
References:  <20020102170108.B1157@klamath.local> <200201021604.g02G4j560286@lurza.secnetix.de> <20020102171148.A45897@klamath.local>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 02, 2002 at 05:11:48PM +0100, Julio Merino wrote:
> On Wed, Jan 02, 2002 at 05:04:45PM +0100, Oliver Fromme wrote:
> > Julio Merino <juli@klamath.local> wrote:
> >  > First, how can I add the current working directory in the PS1?
> > 
> > export PATH=$PATH:.
> > 
> > However, you should be aware of the security implications.
> > It's usually better not to do that.
> 
> No, no, no... PS1, not PATH. I know that about PATH, and I don't want
> it. What I would like is sh to show the current working directory in
> the prompt line... So, I do this in zsh:
> 	export PS1="%w%# "
> And I get this as my command prompt:
> 	/tmp#
> 
> Is this possible with sh?

I don't think you can do that with /bin/sh
In general, sh is not very good for interactive use. For interactice
use I would suggest you use tcsh (included in the base system) or bash
or zsh (both available from the ports system) instead. 



-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se

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?20020102162401.GA35605>