mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-09-21 10:27:09 +00:00
fix(themes/{brainy,powerbash10k}): match UID 0 exactly
This commit is contained in:
parent
e5582de6ec
commit
a5894e6f14
@ -85,7 +85,7 @@ function ____brainy_bottom {
|
|||||||
function ___brainy_prompt_user_info {
|
function ___brainy_prompt_user_info {
|
||||||
local color=$_omb_prompt_bold_navy
|
local color=$_omb_prompt_bold_navy
|
||||||
if [[ $THEME_SHOW_SUDO == true ]]; then
|
if [[ $THEME_SHOW_SUDO == true ]]; then
|
||||||
if sudo -n id -u 2>&1 | grep -q 0; then
|
if [[ $(sudo -n id -u 2>&1) == 0 ]]; then
|
||||||
color=$_omb_prompt_bold_brown
|
color=$_omb_prompt_bold_brown
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -127,7 +127,7 @@ function __pb10k_bottom {
|
|||||||
function __pb10k_prompt_user_info {
|
function __pb10k_prompt_user_info {
|
||||||
local color=$_omb_prompt_bold_olive
|
local color=$_omb_prompt_bold_olive
|
||||||
if [[ $THEME_SHOW_SUDO == true ]]; then
|
if [[ $THEME_SHOW_SUDO == true ]]; then
|
||||||
if sudo -n id -u 2>&1 | grep -q 0; then
|
if [[ $(sudo -n id -u 2>&1) == 0 ]]; then
|
||||||
color=$_omb_prompt_bold_brown
|
color=$_omb_prompt_bold_brown
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user