Where is the setting that determines what the bash prompt looks like? Specifically on Arch, but I'm sure others would like to know for other distros too if it's different.
Speficially I'd like to use (K)Ubuntu's prompt
|
|
|
The environment Variables "$PS1" and "$PS2" set the prompt's look. You can check this howto in order to see all the different variables you can put in there. ` |
|||
|
|
|
As tante said, you have to set the (Others variable exists on other shells like The best thing to do is to edit your
I will give you an additionnal link that I always find useful because there's a good list of the avalaible colors. |
|||||||||||||||
|
|
As others have said, this is determined by the environment vars Ubuntu's default So you'll want to run the following:
To run that every time you log in, put it in your
|
|||
|
|
|
Since you asked specifically about Arch (well, it doesn't really matter, but it makes a nice excuse to add to the answers...), you should look at this entry in the Arch Wiki: Color Bash Prompt. And for even more fun, this thread in the Arch Forums: What's your PS1?. (Pages and pages of people trying to outdo each other with more and more elaborate prompts.... that's the typical Arch user for you.) |
|||
|
|