We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e972d3c commit f2097f7Copy full SHA for f2097f7
1 file changed
themes/base.theme.bash
@@ -598,10 +598,12 @@ function battery_char() {
598
fi
599
}
600
601
-function battery_charge() {
602
- # Provide a stub that always returns empty - the real implementation is in lib/battery.bash
603
- echo ""
604
-}
+if ! _command_exists battery_charge; then
+ function battery_charge() {
+ # Provide a stub that always returns empty - the real implementation is in lib/battery.bash
+ echo ""
605
+ }
606
+fi
607
608
function aws_profile() {
609
if [[ -n "${AWS_PROFILE:-}" ]]; then
0 commit comments