🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.misc
Article #1156

Re: How do I make shell prompt show working directory?

#1156
From: Bradley Head
Date: Thu, 09 Apr 1992 07:51
27 lines
1134 bytes
Here's my setup (what a variety of solutions there are:)


In my .alias file I have the following:

	alias cd 'cd \!*;set prompt = "$cwd> "'

In my .login file I have to source the aliases:

	source $HOME/.alias


And, in my .cshrc file I have this:

	set prompt = "$cwd > "

I don't care to have the hostmane shown, though some people may.


BTW, I think this thread should be in c.s.n.sysadmin

...Brad
-- 
Bradley Head, bhead@hfs.questor.wimsey.bc.ca (NeXTmail :-)
InStep Mobile Communications, Inc., Headfirst Software Ltd. 
Executive of Vancouver NeXT User's Society, Vancouver, BC.
Technical Details
Message-ID: <1992Apr9.075155.5407@hfs.questor.wimsey.bc.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!van-bc!questor!hfs!bhead
References: <1992Apr8.201738.10798@ucsu.Colorado.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!van-bc!questor!hfs!bhead
From: bhead@hfs.questor.wimsey.bc.ca (Bradley Head)
Newsgroups: comp.sys.next.misc
Subject: Re: How do I make shell prompt show working directory?
Message-ID: <1992Apr9.075155.5407@hfs.questor.wimsey.bc.ca>
Date: Thu, 9 Apr 1992 07:51:55 GMT
References: <1992Apr8.201738.10798@ucsu.Colorado.EDU>
Sender: bhead@hfs.questor.wimsey.bc.ca (Bradley Head)
Reply-To: bhead@hfs.questor.wimsey.bc.ca (Bradley Head)
Organization: Headfirst Software, Vancouver, BC, Canada