LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to set tcsh prompt: # for root and % for user? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-set-tcsh-prompt-for-root-and-for-user-8648/)

robson 11-12-2001 08:47 PM

How to set tcsh prompt: # for root and % for user?
 
Hi all,

I'm configuring my linux box. I'll use both bash and tcsh.

The command " set prompt='%#' " in /etc/csh.cshrc sets tcsh prompt to be ">" for user and "#" for root. I REALLY prefer a traditional "%" for user but don't know how to do that.

Anyone here please give me a hand?

btw:
I also wanted the bash prompt to be $ for a normal user and # for root. This was done with " PS1='\$' " in /etc/bashrc

k4zau 10-12-2003 03:13 PM

put the following in your .tcshrc file:

set promptchars="%#"


All times are GMT -5. The time now is 11:35 PM.