commit
ca843e7b93
|
|
@ -18,9 +18,7 @@ function __powerline_user_info_prompt {
|
||||||
local color=${USER_INFO_THEME_PROMPT_COLOR}
|
local color=${USER_INFO_THEME_PROMPT_COLOR}
|
||||||
|
|
||||||
if [[ "${THEME_CHECK_SUDO}" = true ]]; then
|
if [[ "${THEME_CHECK_SUDO}" = true ]]; then
|
||||||
if sudo -n uptime 2>&1 | grep -q "load"; then
|
sudo -vn 1>/dev/null 2>&1 && color=${USER_INFO_THEME_PROMPT_COLOR_SUDO}
|
||||||
color=${USER_INFO_THEME_PROMPT_COLOR_SUDO}
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "${POWERLINE_PROMPT_USER_INFO_MODE}" in
|
case "${POWERLINE_PROMPT_USER_INFO_MODE}" in
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue