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
|
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} "
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue