How To : Set PS1 to show current directory

Bryan Moore moore at emily.uvm.edu
Thu Apr 18 22:36:48 AEST 1991


I do this in the C Shell by adding these two lines to my .cshrc
file.

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

BRYAN R. MOORE          	    |   "Last night I had that same old dream
EMAIL: moore at uvm-gen.uvm.edu	    |    it rocked me in my sleep, it gave me
USMAIL: 12 Waybury Rd. Colchester,  |    the impression the sandman plays for 
  Vermont 05446                     |    keeps..."   Larry Norman



More information about the Comp.unix.aix mailing list