$cwd in prompt???

Philip Yzarn de Louraille yzarn at lhdsy1.chevron.com
Wed Jun 19 04:30:38 AEST 1991


In article <17153 at darkstar.ucsc.edu> bjsvec at cats.ucsc.edu (Brandon Jason Svec) writes:
>
>
>Can someone tell me how to get my prompt to show the current working directory?
>
>I have tried something like this:
>
>alias cd "cd;set prompt = $cwd"  # so it will update each time I cd
>set prompt = $cwd

alias cd      cd \!\* \; set prompt=`echo $cwd`
-- 
  Philip Yzarn de Louraille                 Internet: yzarn at chevron.com
  Research Support Division                 Unix & Open Systems
  Chevron Information & Technology Co.      Tel: (213) 694-9232
  P.O. Box 446, La Habra, CA 90633-0446     Fax: (213) 694-7709



More information about the Comp.unix.questions mailing list