LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Terminal prompt goes away (https://www.linuxquestions.org/questions/linux-newbie-8/terminal-prompt-goes-away-643701/)

poriajay 05-21-2008 02:34 AM

Terminal prompt goes away
 
Hi,
I am using linux for last 1 year and I am end user.
Previously in my cshrc I used to set my prompt like,

set prompt="\n%{\033[31m%]%B[%n@%m:%/]\n$% %b{\033[0m%]"
This sets my prompt in red color like this,

[poriajay@local-host:/users/jporia/Desktop/]
%

Now I have copied some .cshrc file and I have copied above prompt to new .cshrc.

The problem I am facing is, it shows me the CWD in red color but when ever I change my dir. the prompt goes away and normal prompt comes in.

Please tell me what is wrong in my .chsrc

Thanks and regards,
Jay

helgiks 05-21-2008 08:53 PM

Type "echo $PS1", change the directory and type it again, and post the result. See if it is different.


All times are GMT -5. The time now is 04:36 AM.