mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Base: Make the default prompt a different color for root
This commit is contained in:
parent
4b99dbe644
commit
822d7da6cc
Notes:
sideshowbarker
2024-07-18 21:30:49 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/822d7da6cc4
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user