Added prompt defintion to root .bashrc

This commit is contained in:
Asif Bacchus 2018-07-22 00:01:07 -06:00
parent 3eae0e8045
commit 7cb9c21e8a
1 changed files with 7 additions and 0 deletions

7
bash/root/.bashrc Normal file
View File

@ -0,0 +1,7 @@
### append the following to the end of /root/.bashrc
# format prompt and colourize user@host to red(31) to remind user that this is
# a ROOT account
# prompt format: (white)[12-hr time][space](red/green)user@hostname(white):[space](yellow)path/to/current/dir[space](red/green)$[space]
force_color_prompt=yes
PS1="\[\e[37m\][\[\e[m\]\[\e[37m\]\@\[\e[m\]\[\e[37m\]]\[\e[m\] \[\e[31m\]\u\[\e[m\]\[\e[31m\]@\[\e[m\]\[\e[31m\]\h\[\e[m\]\[\e[37m\]:\[\e[m\] \[\e[33m\]\w\[\e[m\] \[\e[31m\]\\$\[\e[m\] "