LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   changing bash (https://www.linuxquestions.org/questions/linux-newbie-8/changing-bash-16738/)

jackcy 03-21-2002 03:57 AM

changing bash
 
I have just installed suse 7.3
everything works fine and i'm on the way to learn linux now. could anyone tell me how to change the prompt signs in my bash - user specific or for all users?

is there a way to personalize the login-message too?

thx a lot

jackcy

acid_kewpie 03-21-2002 04:31 AM

the login message is /etc/issue and is usually recreated every boot from the /etc/rc.local script (i think) so to make your changes, you either need to stop the file being re-written, or to overwrite it your self, by adding something like

echo hello, i rock > /etc/issue at the end of /etc/rc.local

prompt.. well you just need to set the PS1 variable

PS1=[\u@\h \W]\$

gives me [chris@trevor chris]$ you've got the option of changing colors and things, but i don't know the escape codes for them off hand. to specify them per user you can add the line to /home/username/.bashrc and that will then only affect each given user

check the link on my sig, there's a number of online books that will cover these basic questions

hanzerik 03-21-2002 10:41 AM

http://www-106.ibm.com/developerwork.../l-tip-prompt/


All times are GMT -5. The time now is 11:09 AM.