One thing I liked about Mint was that the terminal would usually show two colors: everything from the left to the
$ would be one color, and everything past the
$ would be another.
Is there a way to have this setup with Ubuntu?
Run the following command in a terminal:
Save the file, and open a new terminal window, and you should already see a change (the prompt should be Light Green, which is defined by 1;32). You can then change any colour value you like; eg: 0;35 = Purple.
To edit the colour values, locate the following section, and change the default values with some of the examples listed further down:
You can check out this Bash colour chart for a full range of colour values, but here are a few basic ones you can play around with (note that “Light” isn’t what you might think – it actually means “bold”): Black 0;30 – Dark Gray 1;30 – Blue 0;34 – Light Blue 1;34 – Green 0;32 – Light Green 1;32 – Cyan 0;36 – Light Cyan 1;36 – Red 0;31 – Light Red 1;31 – Purple 0;35 – Light Purple 1;35 – Brown 0;33 – Yellow 1;33 – Light Gray 0;37 – White 1;37
For example, here is the line that I use it:
or, my girlfriend, use:
Feel free experimenting by setting your prompt by changing the value of the PS1 environment variable in Terminal, as follows:
Here is how my terminal look:
This thing you are talking about is called prompt. There are lots of options and scripts to modify your prompt using different colors and displaying any kind of additional information. A good start with some examples can be found within jamie's collection and IBM has some nice explanations for beginners. If you want to go more into detail have a look at this comprehensive howto
You can try this one:
(try it in a terminal first). Then, if you like it, you can put it somewhere in your