How To: set PS1 to show users "current" directory?

Paul Rolland rol at grasp1.univ-lyon1.fr
Thu Apr 18 00:49:20 AEST 1991


In article <1991Apr16.093733.19362 at ioe.lon.ac.uk> law at ioe.lon.ac.uk (Lindsay Wakeman) writes:
>
>In csh .login I use:
>
>  cd
>  alias cd 'cd \!*; set prompt="$cwd :"'
>
   That works fine, but I'd like to have the working directory relative
to my HOME directory. That's is : my HOME is /u/rol. If I'm in /u/rol/tmp/c,
I'd like to have the prompt being tmp/c, or even better, HOME/tmp/c when I'm
in /u/rol/tmp/c and /u when I'm in /u...
  How can I do that ?

	Paul.

 Paul Rolland, engineer [I hope :)] in July 91,
 Specialist of assembly on PC [Not too bad in fact :)],
 Trying to progress on Unix administration
 					   Email : rol at grasp1.univ-lyon1.fr 



More information about the Comp.unix.aix mailing list