1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:17:44 +00:00

Base: Make the default prompt a different color for root

This commit is contained in:
Andreas Kling 2021-03-11 17:58:39 +01:00
parent 4b99dbe644
commit 822d7da6cc

View file

@ -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 "