title: How can I change my tcsh prompt to show my current working directory?
body: <p>I am using <code>tcsh</code>and I am  looking for a way responsive working directory where I at least want to display the last folder name instead of getting full path.</p>
  
  <p>Imagine my current working directory is :  </p>
  
  <pre><code>  [user@hostname/home/us/Desktop/my/projects]
  </code></pre>
  
  <p>then I would like to display the prompt like this :</p>
  
  <pre><code>    [user@hostname projects] 
  </code></pre>
  
  <p>present I am using the <code>.cshrc</code> file in file I have written like this:</p>
  
  <pre><code>  alias setprompt 'set prompt="[suman@`hostname` `pwd`:~] $"'
    alias setprompt 'set prompt="${LightGreen}[${yellow}suman${Light}${LightPurple}@%m ${LightGreen}:~] ${yellow}$ ${end} "'
  </code></pre>
  
  <p>I don't have PS1 variable also and don't know what it does, and I would like to know the difference between <code>.cshrc</code> file and <code>.bashrc</code> file.</p>