Pretty prompt

Amitabh Shah shah at santur.tay1.dec.com
Sat Jun 15 03:15:49 AEST 1991


In article <13562 at mentor.cc.purdue.edu>, mckay at mace (Dwight D. Mckay) writes:
>In article <1991Jun13.163726.10604 at umiami.ir.miami.edu>, rfrost at umiami.ir.miami.edu writes:
>|> How do I get a prompt which will always show the current directory.
>|> For example:
>|> 
>|>      /usr/rfrost>
>
>Under csh you could put the following in your .cshrc:
>
>alias cd cd \!$ \; set prompt=\"\`echo \$cwd \| sed \'s\?${home}\?\~\?\'\`\>\ \"
>
>This puts your current path in your prompt, substitution "~" for your home directory whenever you type "cd".
>

Or better yet, get the latest version of tcsh, and use:

set prompt="%~> "

in your .login. You can do many other things with tcsh too!

-amitabh.
_______________________________________________________________________________
Amitabh Shah                               shah at santur.tay1.dec.com--(INTERNET)
Digital Equipment Corporation		   {..}!decwrl!santur.tay1!shah--(UUCP)
TP Systems Performance			   +1 508 952 4430--------------(PHONE)
151 Taylor St. Littleton MA 01460	   +1 508 952 4197----------------(FAX)



More information about the Comp.unix.ultrix mailing list