I am trying to get the following behavior for my prompt in TCSH:
/users/james/ $ cd /projects/android/new_project/1.0/
New Project {1.0} / $ cd vars
New Project {1.0} /vars/ $
I have looked at using cwdcmd but I believe that the variable I assign to store the cwd will only be passed to the prompt once.
I've also looked at using set prompt='%c3' etc but this only shows the trailing n
dirs, not eliminating the initial ones.
Before anyone suggests I change shell I have to use TCSH.
Thanks!