From owner-freebsd-questions Wed Jan 2 8:24: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from maile.telia.com (maile.telia.com [194.22.190.16]) by hub.freebsd.org (Postfix) with ESMTP id DDCDA37B420 for ; Wed, 2 Jan 2002 08:24:05 -0800 (PST) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by maile.telia.com (8.11.6/8.11.6) with ESMTP id g02GO3O01469 for ; Wed, 2 Jan 2002 17:24:03 +0100 (CET) Received: from falcon.midgard.homeip.net (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id RAA19852 for ; Wed, 2 Jan 2002 17:24:02 +0100 (CET) Received: (qmail 37440 invoked by uid 1001); 2 Jan 2002 16:24:01 -0000 Date: Wed, 2 Jan 2002 17:24:01 +0100 From: Erik Trulsson To: Julio Merino Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Some /bin/sh questions Message-ID: <20020102162401.GA35605@student.uu.se> Mail-Followup-To: Julio Merino , freebsd-questions@FreeBSD.ORG References: <20020102170108.B1157@klamath.local> <200201021604.g02G4j560286@lurza.secnetix.de> <20020102171148.A45897@klamath.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020102171148.A45897@klamath.local> User-Agent: Mutt/1.3.24i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message