Subject: Re: Setting prompt...
To: mac68k <port-mac68k@netbsd.org>
From: sclark <sclark@htfm.net>
List: port-mac68k
Date: 10/08/1998 16:01:20
I am new to the UNIX OS and programming so if this
works for you let me know, it works for me in csh
after the first time you change directories. If you
want it to start up with the correct prompt,
add "cd ." to your .login.

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

-sean

>>>Hey,
>>>   How do you set the prompt for the c-shell in the .cshrc to show your
>>>current path.  I tried what I thought would work but it doesn't.
>>>
>>>-Chris
>>>
>>Here's what I use:
>>
>>set prompt="%m%~ %h%%> "
>>- Jude Giampaolo
>i believe the above only works with tcsh (which i'd recommend using over
>standard csh).  most solutions for tcsh look something like:
>
>alias reprompt	'set prompt=`pwd`"%'
>alias cd 	'cd;reprompt'

>i hope this helps some.
>later.
>- Colin Wood