*BSD News Article 68679


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!Germany.EU.net!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Path in prompt !!?? help!
Date: 16 May 1996 12:18:21 GMT
Organization: Private BSD site, Dresden
Lines: 21
Message-ID: <4nf6ed$22s@uriah.heep.sax.de>
References: <DrG8vz.HCE@student.twi.tudelft.nl>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

"M.V. van der Star" <star> wrote:
                    ^^^^^^ Please have your news software fixed.

> Hi, this may be a dumb question but I have recently installed FreeBSD 2.05
> and I wonder how to get my prompt to display the current directory !

This has already been discussed here.  Basically, for standard shells,
you have to create aliases (or shell functions) replacing the existing
cd/pushd/popd shell builtins.  (Make sure to use the chdir builtin
inside a cd() function in the Bourne shell, or your shell will die
from endless recursion and eventually a stack overflow.)

For shells like tcsh or bash, there's a bunch of configuration options
for the shell prompt.  Refer to the appropriate man page.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)