1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 12:20:07 +00:00

Add option for non-verbose battery

This commit is contained in:
Dan Miller 2016-06-16 22:33:09 -07:00
parent cef8c65586
commit 19ccfa64eb

View file

@ -419,6 +419,8 @@ prompt_battery() {
set_default POWERLEVEL9K_BATTERY_VERBOSE true set_default POWERLEVEL9K_BATTERY_VERBOSE true
if [[ "$POWERLEVEL9K_BATTERY_VERBOSE" == true ]]; then if [[ "$POWERLEVEL9K_BATTERY_VERBOSE" == true ]]; then
message="$bat_percent%%$remain" message="$bat_percent%%$remain"
else
message="$bat_percent%%"
fi fi
# Draw the prompt_segment # Draw the prompt_segment