From owner-freebsd-questions Wed Jan 2 8:55: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by hub.freebsd.org (Postfix) with ESMTP id D7D9637B41A for ; Wed, 2 Jan 2002 08:55:00 -0800 (PST) Received: (from olli@localhost) by lurza.secnetix.de (8.11.6/8.11.6) id g02Gt6U62846; Wed, 2 Jan 2002 17:55:06 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Date: Wed, 2 Jan 2002 17:55:06 +0100 (CET) Message-Id: <200201021655.g02Gt6U62846@lurza.secnetix.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG Reply-To: freebsd-questions@FreeBSD.ORG Subject: Re: Some /bin/sh questions In-Reply-To: <20020102171148.A45897@klamath.local> X-Newsgroups: list.freebsd-questions User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.4-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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 Julio Merino wrote: > [...] > No, no, no... PS1, not PATH. Oops ... I'm sorry. I must have had my mind somewhere else. Now I see what you mean. I don't think you can do that directly, but you can do some magic by overloading the "cd" builtin command by a shell function. Something like this: cd () { command cd "$1"; PS1="`pwd` > "; } That should get you the idea. Note that both "cd" and "pwd" are builtin commands, so there's not much of an efficiency concern. You can put the above line into your .profile script. But then again, as I wrote in my previous mail, if you're familiar with zsh, just use zsh. it has a _lot_ more convenient features. Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message