Background
Inspired by this question, I wanted to try to change my command prompt in this manner
Enter this line into ~/.cshrc
a.
setenv PS1 "\[\e[32m\][\[\e[m\]\[\e[31m\]\u\[\e[m\]\[\e[33m\]@\[\e[m\]\[\e[32m\]\h\[\e[m\]:\[\e[36m\]\w\[\e[m\]\[\e[32m\]]\[\e[m\]\[\e[32;47m\]\\$\[\e[m\] "
b. I used setenv because it is the csh equivalent of export and is the closest thing to this procedure, which uses the bash command export.
- Source ~/.cshrc
However, this did not work. setenv threw the error:
Variable name must contain alphanumeric characters.
Question
How do I change my cshell prompt to modify the colors and what text is displayed?