added suggested improvements

This commit is contained in:
Ari Mourao
2017-02-10 16:43:22 -02:00
parent 7415c85ed8
commit 4eeb98772b
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ function __powerline_user_info_prompt {
local user_info=""
local color=${USER_INFO_THEME_PROMPT_COLOR}
if ${CAN_SUDO}; then
if [[ "THEME_CHECK_SUDO" = true ]]; then
if sudo -n uptime 2>&1 | grep -q "load"; then
color=${USER_INFO_THEME_PROMPT_COLOR_SUDO}
fi