From owner-freebsd-questions Wed Mar 13 23:49:02 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA06410 for questions-outgoing; Wed, 13 Mar 1996 23:49:02 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id XAA06404 for ; Wed, 13 Mar 1996 23:49:01 -0800 (PST) Received: from mail.EUnet.hu (mail.eunet.hu [193.225.28.100]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id XAA01782 for ; Wed, 13 Mar 1996 23:48:57 -0800 Received: by mail.EUnet.hu, id IAA00532; Thu, 14 Mar 1996 08:42:14 +0100 Received: by CoDe.CoDe.hu (PAA00889); Wed, 13 Mar 1996 15:07:36 GMT From: Gabor Zahemszky Message-Id: <199603131507.PAA00889@CoDe.CoDe.hu> Subject: Re: How to make current directory show at the commandline? To: mikec@mediacity.com (Mike Coffey & Yvonne Shevnin) Date: Wed, 13 Mar 1996 15:07:36 +0000 (GMT) Cc: freebsd-questions@freebsd.org In-Reply-To: <31468A3B.28B6@mediacity.com> from "Mike Coffey & Yvonne Shevnin" at Mar 13, 96 00:41:31 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > I would like the current directory that I am at to display at the command > line like it does in DOS. Is there anyway to emulate this? > > Thanks-- Yvonne Shevnin > in csh (not tcsh): alias cd 'cd \!* ; set prompt = "$cwd "' and after it, make a cd . in ksh/pdksh: PS1='$PWD ' You cannot do it in sh (ash) -- Gabor Zahemszky -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:- Earth is the cradle of human sense, but you can't stay in the cradle forever. Tsiolkovsky