🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1693

Prompts and cwd...

#1693
From: Mr. Loony
Date: Thu, 01 Nov 1990 19:22
14 lines
675 bytes
I have the following in my .login to put the cwd in the prompt:

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

  If your system does not set cwd, then simply replace $cwd with `pwd`

I have used both at one point or another, and they have worked...
Hope this helps...

    Larry 

daffner@ecn.purdue.edu
Technical Details
Message-ID: <9011011922.AA20213@gn.ecn.purdue.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!ECN.PURDUE.EDU!daffner

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!ECN.PURDUE.EDU!daffner
From: daffner@ECN.PURDUE.EDU (Mr. Loony)
Newsgroups: comp.unix.shell
Subject: Prompts and cwd...
Message-ID: <9011011922.AA20213@gn.ecn.purdue.edu>
Date: 1 Nov 90 19:22:45 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 14