diff --git a/neofetch b/neofetch index 4a185c30..4581c3aa 100755 --- a/neofetch +++ b/neofetch @@ -1563,6 +1563,7 @@ getbattery () { unset battery # Print each battery on a separate line. + index=0 for bat in "${batteries[@]}"; do case "$battery_display" in "bar") prin "${title}${index}: $(bar ${bat/'%'} 100)" ;;