From 873661982297cb9d725b50c20e362c50919e1ccc Mon Sep 17 00:00:00 2001 From: Von Random Date: Mon, 5 Dec 2016 18:20:27 +0300 Subject: [PATCH] test uid via (( instead of [[ --- bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bashrc b/bashrc index 65f955d..027ddc5 100644 --- a/bashrc +++ b/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} " }