<div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><FONT size=3>Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><o:p><FONT size=3> </FONT></o:p></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><FONT size=3>My path includes several directories. See below as an example.<o:p></o:p></FONT></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><o:p><FONT size=3> </FONT></o:p></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><FONT size=3>hostname:gary_scripts>pwd<o:p></o:p></FONT></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><FONT size=3>/work/<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:City
 w:st="on">gary</st1:City>/<B style="mso-bidi-font-weight: normal">gary_scripts</B>/cm/<st1:place w:st="on">MAIN</st1:place><o:p></o:p></FONT></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><o:p><FONT size=3> </FONT></o:p></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><FONT size=3>I only want to show the directory, <B style="mso-bidi-font-weight: normal">gary_scripts</B> (the third directory in the path) at the prompt. The directory <STRONG>gary_scripts</STRONG> shows at the prompt when I am in this directory or its sub-directories. It is not showed at prompt if I am not under this directory. I can easily make it in Korn Shell using the lines below. I put these two lines in a file and source it. But, I am no good at C-Shell. Anyone has idea of how to do it in C-Shell?<o:p></o:p></FONT></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><o:p><FONT
 size=3> </FONT></o:p></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><FONT size=3>my_cd() { \cd "$1"; PS1="`hostname`:`pwd | awk -F/ '{print $4}'`>"; }<o:p></o:p></FONT></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><FONT size=3>alias cd=my_cd<o:p></o:p></FONT></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><o:p><FONT size=3> </FONT></o:p></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><o:p><FONT size=3> </FONT></o:p></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><FONT size=3>Thanks,<o:p></o:p></FONT></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><o:p><FONT size=3> </FONT></o:p></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><o:p><FONT
 size=3> </FONT></o:p></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><FONT size=3><st1:City w:st="on"><st1:place w:st="on"><SPAN style="FONT-FAMILY: Arial">Gary</SPAN></st1:place></st1:City><SPAN style="FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><o:p><FONT size=3> </FONT></o:p></SPAN></div>  <div class=MsoNormal style="MARGIN: 0pt"><SPAN style="FONT-FAMILY: Arial"><o:p><FONT size=3> </FONT></o:p></SPAN></div><p>
      <hr size=1>Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a>