this works, but only partially.
every time I move to to a different directory (i.e. 'cd <some dir>'), the prompt is reset. Meaning, when I 'echo $prompt' after setting the prompt I get the correct prompt, but right after that when I cd to a different dir, 'echo $prompt' returns blank.
of course the prompt itself doesn't show 'a/b/c>' anymore.
Arent you talKing DOS here? It seems to me... and so wrong forum
A prompt in unix could be PS1 (PS2 etc...) environment variable and set normally by default at login either in /etc/profile (for all users...) or in your .profile...
I have the 'set prompt' command in my ~/.cshrc which runs at login.
for some reason this isn't working, as I detailed in my previous post.
to check what happens to the prompt, i just typed the 'set prompt' command in my shell and saw my prompt changes accordingly, but when i change dir the prompt is reset to showing only one level of directories (and not 3 as i wanted). this is probably what causing the default settings from ~/.cshrc not to work.
what can dynamically change $prompt like that?
15 years since last time I used tcsh... excuse my lack of memory....
and yes you are right its prompt in .cshrc and no PS1 (sh / ksh...), I will see if I can find in my old notes ( will be hard to find though... 15 years...) anything...
All the best
What are you trying to achieve for a prompt display?
I dont undestand the issue.. could you give a sample of what your prompt display, lest say when you are in your home directory, then go to /usr/local/bin and give us the new prompt and explain what you want, thanks
thank you for your answers.
all of these do change the prompt.
I found out that on tcsh, every change dir makes the prompt setting go away.
so i simply added an alias for 'cd' which sets the prompt after every change dir