Wolf1098
Posts: 2
Joined: Sat Sep 06, 2014 3:58 am

[Bash] Console Prompt

Thu Oct 02, 2014 10:43 pm

When ever I used the root account prompt I hated not having the Colour prompt for the root account in the console.

So I made a PS1 code and put it in

Code: Select all

/root/.bashrc
and I thought since I based it off the default user coloured prompt I would share for anyone who wants it.

Code Here:

Code: Select all

PS1="\[\e[01;31m\]\u@\h\[\e[0m\]\[\e[01;37m\] \[\e[0m\]\[\e[01;34m\]\w\[\e[0m\]\[\e[01;37m\] \[\e[0m\]\[\e[01;34m\]\\$\[\e[0m\]\[\e[01;37m\] \[\e[0m\]"
'

Here is a screen shot of how it looks in Putty
Image
-Terrence

Return to “Raspberry Pi OS”