diff --git a/themes/atomic/atomic.theme.bash b/themes/atomic/atomic.theme.bash index a89aeea3..5f44b34b 100644 --- a/themes/atomic/atomic.theme.bash +++ b/themes/atomic/atomic.theme.bash @@ -194,7 +194,7 @@ ___atomic_prompt_char() { color=$white prompt_char="${__ATOMIC_PROMPT_CHAR_PS1}" if [ "${THEME_SHOW_SUDO}" == "true" ]; then - if [ $(sudo -n id -u 2>&1 | grep 0) ]; then + if sudo -vn 1>/dev/null 2>&1; then prompt_char="${__ATOMIC_PROMPT_CHAR_PS1_SUDO}" fi fi