I liked the green prompt on Linux Mint, and upon seeing it reproduced in the Debian release for Raspberry Pi, I thought "Hey, why don't I figure out how to do that!"
Don't ask me why I thought of purple. Everywhere on the site, Mageia's theme is blue, but I still associate purple with Mageia. But blue is used for the working directory in Linux Mint, so it would have been boring for the prompt and pwd to be the same colour.
Into my home .bashrc file, I added:
- Code: Select all
# Purple, bold='\033[1;35m'
PS1='\[\033[1;35m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
Enjoy!
Newbie's note: Don't confuse the square brackets in mageia's default prompt for special characters, they are not! The default prompt includes square bracket's for style only:
- Code: Select all
$ echo $PS1
[\u@\h \W]\$
None of the brackets in the special colour codes should be showing up at your actual prompt.
ref: Linux Mint 13 .bashrc file
ref:https://wiki.archlinux.org/index.php/Color_Bash_Prompt#Step_by_step