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

W. W. Looi looi at sutro.SFSU.EDU
Thu Apr 18 12:38:36 AEST 1991


In article <1991Apr17.144920.17478 at grasp1.univ-lyon1.fr> rol at grasp1.univ-lyon1.fr (Paul Rolland) writes:
>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.
>

I can deliver what you ask for if you can convince us the justification
for relative directory instead of absolute directory... :-)

ttfn - looi



More information about the Comp.unix.aix mailing list