From owner-freebsd-questions Wed Mar 13 09:26:47 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA11406 for questions-outgoing; Wed, 13 Mar 1996 09:26:47 -0800 (PST) Received: from uswat.advtech.uswest.com (uswat.advtech.uswest.com [130.13.16.1]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id JAA11397 for ; Wed, 13 Mar 1996 09:26:43 -0800 (PST) Received: from egate.mnet.uswest.com ([151.116.23.138]) by uswat.advtech.uswest.com (8.7.5/8.7.3) with ESMTP id KAA09527; Wed, 13 Mar 1996 10:26:11 -0700 (MST) Received: from easthub (easthub.mnet.uswest.com [151.117.26.86]) by egate.mnet.uswest.com (8.7.1/8.7.1) with SMTP id KAA22608; Wed, 13 Mar 1996 10:34:27 -0700 (MST) Received: by easthub.mnet.uswest.com (M-Net Hub.951228) Received: from astro.acs.uswest.com by acs.uswest.com (5.x/SMI-SVR4) id AA19548; Wed, 13 Mar 1996 11:26:03 -0600 Received: from kermit by astro.acs.uswest.com (SMI-8.6/SMI-SVR4) id LAA11606; Wed, 13 Mar 1996 11:25:53 -0600 Message-Id: <31470521.B9F@uswest.com> Date: Wed, 13 Mar 1996 11:25:53 -0600 From: "Paul T. Root" Organization: !nterprise Networking Services X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m) Mime-Version: 1.0 To: freebsd-questions@freebsd.org Cc: mikec@mediacity.com Subject: Re: How to make current directory show at the commandline? References: <31468A3B.28B6@mediacity.com> <9603131436.AA29020@wavehh.hanse.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Martin Cracauer wrote: > > >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? > > Yu should have told us which shell you use. > > If you use bash, zsh or tcsh, RTFM. This isn't always very useful. In bash its simple: PS1="\h:\w \t \! % " \h hostname \w pwd \t time \! command number > In csh, you can put this into you .cshrc: > vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv > alias SetPrompt 'set prompt="${myhost} [`pwd2`]-\\!% "' > > alias cd 'cd \!* && SetPrompt' > alias cdl 'cd \!*; ls' > alias popd 'popd \!* && SetPrompt' > alias pushd 'pushd \!* && SetPrompt' > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > -- > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > Martin Cracauer - Fax +49 40 522 85 36 > BSD User Group Hamburg, Germany http://www.bik-gmbh.de/~cracauer -- Paul T. Root E/Mail: ptroot@uswest.com 200 S. 5th St. Suite 1100 PAG: +1 (800) SKY-PAGE PIN: 537-7370 Minneapolis, MN 55402 WRK: +1 (612) 663-1979 NIC: PTR FAX: +1 (612) 663-8030