LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Question about bash prompt (https://www.linuxquestions.org/questions/linux-newbie-8/question-about-bash-prompt-77185/)

sangjin 07-30-2003 01:07 AM

Question about bash prompt
 
Hi

I would like to ask a question about bash prompt.
I have included the following line in .bash_profile to
change my prompt.

PS1="\u@\h \@PWD] "

If I run the following command

source .bash_profile

I get what I want. But if I start a new terminal I still
get the old prompt defined in /etc/bashrc. I don't like
to recompile .bash_profile everytime I start a new terminal.
I could edit /etc/bashrc but I would like to allow users to
only edit .bash_profile to get what ever prompt they want.

I'm using Redhat Linux 9 and GNOME XDM.

Sincerely yours,
Sangjin Kim
sangjin89@hotmail.com

acid_kewpie 07-30-2003 02:04 AM

just put it in your own .bashrc instead.

scott_R 07-30-2003 02:08 AM

ones for original login, the other's for any additional terminals you start. Or something like that...I'm getting tired. :)


All times are GMT -5. The time now is 08:17 PM.