diff options
Diffstat (limited to 'Base')
-rw-r--r-- | Base/etc/shellrc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Base/etc/shellrc b/Base/etc/shellrc index a116474707..60426a4178 100644 --- a/Base/etc/shellrc +++ b/Base/etc/shellrc @@ -31,4 +31,10 @@ alias rgrep="grep -r" alias egrep="grep -E" alias ll='ls -l' -export PROMPT="\\X\\u@\\h:\\w\\a\\e[32;1m@\\h\\e[0m:\\e[34;1m\\w\\e[0m \\p " +if [ "$(id -u)" = "0" ] { + prompt_color=31 +} else { + prompt_color=32 +} + +export PROMPT="\\X\\u@\\h:\\w\\a\\e[$prompt_color;1m@\\h\\e[0m:\\e[34;1m\\w\\e[0m \\p " |