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 else
prompt_user="${pnred}\u${preset} " prompt_user="${pnred}\u${preset} "
fi fi
if [[ $UID -eq 0 ]]; then if ((UID)); then
bang="${pnred}>"
else
bang="${pbold}>" bang="${pbold}>"
else
bang="${pnred}>"
fi fi
PS1="[ ${prompt_user}${HOSTNAME}:${pbold}\w${preset} ]${newline}${bang}${preset} " PS1="[ ${prompt_user}${HOSTNAME}:${pbold}\w${preset} ]${newline}${bang}${preset} "
} }