*BSD News Article 67071


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!metro!metro!asstdc.scgt.oz.au!nsw.news.telstra.net!act.news.telstra.net!vic.news.telstra.net!news.mira.net.au!inquo!in-news.erinet.com!izzy.net!aanews.merit.net!imci3!imci4!newsfeed.internetmci.com!iol!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.bsd.misc
Subject: Re: Help!  How do I set my prompt?
Date: 26 Apr 1996 10:12:15 +0100
Organization: Coverform Ltd.
Lines: 17
Message-ID: <4lq41f$gn@anorak.coverform.lan>
References: <317E4568.62C0@cyclesak.com>
X-NNTP-Posting-Host: awfulhak.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]

Tokewanna Inc. (sales@cyclesak.com) wrote:
: I'm using csh shell and I was wondering what the set command is so
: it will show my directory locations.  Thanks!

: John Norton
: john_norton@byu.edu

I'm no expert with csh, but you probably can't unless you set up a 'cd' alias
that dicks around with your prompt.

Under bash, you can say
    PS1="$PWD \$ "
and I'm sure that shells such as tcsh give you these facilities !

--
Brian <brian@awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour....