LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I permanently change my shell prompt? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-permanently-change-my-shell-prompt-913920/)

venom4u31 11-16-2011 04:09 PM

How do I permanently change my shell prompt?
 
I have read online that the $PS1, $PS2 and so on variables contain the prompt format. I tried changing those, and their effect was instantly visible. Unfortunately, when I restart the system, the shell prompt returns to its original format.

How do I permanently change the shell prompt?

The system is debian 6.0.

Snark1994 11-16-2011 04:11 PM

If you're using bash, then you want to set the variables in your ~/.bashrc file.

http://infohost.nmt.edu/tcc/help/pub...es/bashrc.html, for example :)

venom4u31 11-16-2011 04:34 PM

Quote:

Originally Posted by Snark1994 (Post 4525943)
If you're using bash, then you want to set the variables in your ~/.bashrc file.

http://infohost.nmt.edu/tcc/help/pub...es/bashrc.html, for example :)

Great thanks! Apparently there is a file in /etc/bash.bashrc (for debian) that manages these variables globally. I thought that by setting PS1='bashprompt' would do the trick permanently. Apparently that's not the case.


All times are GMT -5. The time now is 02:20 PM.