Prompt as Current Directory?

John Woodgate woodgate at pyrltd.UUCP
Fri Nov 17 01:19:02 AEST 1989


In article <Nov.16.00.56.12.1989.9985 at paul.rutgers.edu> 
broadman at paul.rutgers.edu (Alan Broadman) writes:
 
>How can you get the UNIX prompt to always reflect the path to the 
>current directory. 

Try this (from my .cshrc)

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

John Woodgate           * Any resemblance between the above *       -mm-------
Pyramid Technology Ltd. * views and those of employer, my   *     ---mmmm-----
..ukc!pyrltd!woodgate   * wife, or my kids, is pure chance  *   -----mmmmmm---
Tel : +44 252 373035    * and never likely to be repeated.  * -------mmmmmmmm-



More information about the Comp.unix.questions mailing list