From 7cb9c21e8a359b9114daa3e7af9798e27b3db2aa Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 22 Jul 2018 00:01:07 -0600 Subject: [PATCH] Added prompt defintion to root .bashrc --- bash/root/.bashrc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 bash/root/.bashrc diff --git a/bash/root/.bashrc b/bash/root/.bashrc new file mode 100644 index 0000000..68deb03 --- /dev/null +++ b/bash/root/.bashrc @@ -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\] "