PROMPT

Andy Sun Anu-guest sun at me.utoronto.ca
Wed Oct 25 12:35:56 AEST 1989


In article <21262 at adm.BRL.MIL> shahryar at sutro.sfsu.edu (Shahryar G. Hashemi) writes:
>Hello there,
>
>I have a question about setting up my prompt in UNIX.  In DOS you can a:
>PROMPT $P$G
>and it will automaticaly change my prompt when I change to a new directory.
>
>I would like to know how to do this same command in UNIX.  I have tried 
>alias {but no good man pages}.  Could someone out there please help me.
>
>Shahryar Ghazneini Hashemi
>
><shahryar at sutro.sfsu.edu>

Add this alias entry to your .login or .cshrc:

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

I think it will do what you want.

Andy
-- 

_______________________________________________________________________________
Andy Sun                        | Internet: sun at me.utoronto.ca
University of Toronto, Canada   | UUCP    : csri.toronto.edu!me.utoronto.ca!sun
Dept. of Mechanical Engineering | BITNET  : sun at me.utoronto.BITNET



More information about the Comp.unix.questions mailing list