[zshrc] switch from spaces to tabs

This commit is contained in:
Simon Bruder 2018-05-20 14:44:47 +00:00
parent c9ae405e10
commit 749a5e97b3
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -28,10 +28,10 @@ alias batt="upower -i /org/freedesktop/UPower/devices/battery_BAT0|grep percenta
## Battery status (overwrites upstream function!)
function batterylinux () {
GRML_BATTERY_LEVEL=''
local batteries bat capacity
batteries=( /sys/class/power_supply/BAT*(N) )
if (( $#batteries > 0 )) ; then
GRML_BATTERY_LEVEL=''
local batteries bat capacity
batteries=( /sys/class/power_supply/BAT*(N) )
if (( $#batteries > 0 )) ; then
for bat in $batteries ; do
if [[ -e $bat/capacity ]]; then
capacity=$(< $bat/capacity)
@ -57,7 +57,7 @@ if (( $#batteries > 0 )) ; then
esac
GRML_BATTERY_LEVEL+="${capacity}%%"
done
fi
fi
}