For changing the background (and text) colours, you simply go to profile preferences and set it there:
For the prompt itself, this is set in the prompt itself, this is more complex. This is set from the
~/.bashrc hidden file (or another similar file), probably using a line like this (it will begin with
The colour in the prompt is set using escape codes (if the terminal being used supports it)- so basically each bit of
\033[Nm sets the format for the following text, depending on what
N can be multiple things separated by
For the basic colours, you can use the simple numeric codes listed here:
1 Makes stuff bold, 0 resets - multiple things can be used as well - e.g:
echo -e "\033[1;32mExample\033[0m"
Otherwise you can set your own colour (probably limited support):
echo -e "\033[38;2;240;115;0mOrange\033[0m"
So you can fairly easily edit the PS1 line to suit (and test it with
echo -e ...). I recently did this with various colours for different machines so I could use multiple terminals without typing the right command into the wrong computer...