test uid via (( instead of [[
This commit is contained in:
parent
20cbd8f683
commit
8736619822
1 changed files with 3 additions and 3 deletions
6
bashrc
6
bashrc
|
@ -66,10 +66,10 @@ prompt_command()
|
|||
else
|
||||
prompt_user="${pnred}\u${preset} "
|
||||
fi
|
||||
if [[ $UID -eq 0 ]]; then
|
||||
bang="${pnred}>"
|
||||
else
|
||||
if ((UID)); then
|
||||
bang="${pbold}>"
|
||||
else
|
||||
bang="${pnred}>"
|
||||
fi
|
||||
PS1="[ ${prompt_user}${HOSTNAME}:${pbold}\w${preset} ]${newline}${bang}${preset} "
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue