Skip to content

Commit f2097f7

Browse files
committed
That made little sense to me so I am undoing this.
1 parent e972d3c commit f2097f7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

themes/base.theme.bash

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,10 +598,12 @@ function battery_char() {
598598
fi
599599
}
600600

601-
function battery_charge() {
602-
# Provide a stub that always returns empty - the real implementation is in lib/battery.bash
603-
echo ""
604-
}
601+
if ! _command_exists battery_charge; then
602+
function battery_charge() {
603+
# Provide a stub that always returns empty - the real implementation is in lib/battery.bash
604+
echo ""
605+
}
606+
fi
605607

606608
function aws_profile() {
607609
if [[ -n "${AWS_PROFILE:-}" ]]; then

0 commit comments

Comments
 (0)