1849825 Members
2733 Online
104044 Solutions
New Discussion

csh question

 
SOLVED
Go to solution
YLTan
Frequent Advisor

csh question


how to convert this ksh to csh recognizable form;

PS1="$(hostname)@\$PWD> "

Expected output is;

dev01@/home/john>
tyl
1 REPLY 1
john korterman
Honored Contributor
Solution

Re: csh question

Hi,
does this work on your system?:

alias cd 'cd \!*;set prompt="`hostname`@$cwd >"'

you have to execute a cd to activate it.

regards,
John K.
it would be nice if you always got a second chance