[comp.unix.shell] Prompts and cwd...

daffner@ECN.PURDUE.EDU (Mr. Loony) (11/02/90)

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