mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
Base: Make the default prompt a different color for root
This commit is contained in:
parent
4b99dbe644
commit
822d7da6cc
1 changed files with 7 additions and 1 deletions
|
@ -31,4 +31,10 @@ alias rgrep="grep -r"
|
||||||
alias egrep="grep -E"
|
alias egrep="grep -E"
|
||||||
alias ll='ls -l'
|
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 "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue