Added AC indicator support on OS X
Not sure about the logic for returning 1/0 from the function, though - will have to clarify.
This commit is contained in:
@@ -153,7 +153,7 @@ function __powerline_battery_prompt {
|
||||
else
|
||||
color="${BATTERY_STATUS_THEME_PROMPT_GOOD_COLOR}"
|
||||
fi
|
||||
[[ "$(ac_adapter_connected)" ]] && battery_status="${BATTERY_AC_CHAR}${battery_status}"
|
||||
ac_adapter_connected && battery_status="${BATTERY_AC_CHAR} ${battery_status}"
|
||||
echo "${battery_status}%|${color}"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user