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
Notes: sideshowbarker 2024-07-18 21:30:49 +09:00

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 "