From owner-freebsd-questions Wed Mar 13 07:46:48 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA05176 for questions-outgoing; Wed, 13 Mar 1996 07:46:48 -0800 (PST) Received: from ki1.chemie.fu-berlin.de (ki1.Chemie.FU-Berlin.DE [160.45.24.21]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA05154 for ; Wed, 13 Mar 1996 07:46:27 -0800 (PST) Received: by ki1.chemie.fu-berlin.de (Smail3.1.28.1) from mail.hanse.de (193.174.9.9) with smtp id ; Wed, 13 Mar 96 16:45 MET Received: from wavehh.UUCP by mail.hanse.de with UUCP for freebsd-questions@freebsd.org id ; Wed, 13 Mar 96 15:45 MET Received: by wavehh.hanse.de (4.1/SMI-4.1) id AA29020; Wed, 13 Mar 96 15:36:16 +0100 Date: Wed, 13 Mar 96 15:36:16 +0100 From: cracauer@wavehh.hanse.de (Martin Cracauer) Message-Id: <9603131436.AA29020@wavehh.hanse.de> To: mikec@mediacity.COM Cc: freebsd-questions@freebsd.org Subject: Re: How to make current directory show at the commandline? Newsgroups: hanse-ml.freebsd.questions References: <31468A3B.28B6@mediacity.com> Reply-To: cracauer@wavehh.hanse.de 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? Yu should have told us which shell you use. If you use bash, zsh or tcsh, RTFM. 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