1
0
Fork 0

test uid via (( instead of [[

This commit is contained in:
Von Random 2016-12-05 18:20:27 +03:00
parent 20cbd8f683
commit 8736619822

6
bashrc
View file

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