Browse Source

Add pwinfo command

Alex Matevish 8 months ago
parent
commit
fd5538abe6
1 changed files with 3 additions and 0 deletions
  1. 3 0
      mac.sh

+ 3 - 0
mac.sh

@@ -63,3 +63,6 @@ function unfuck-windows {
 function ls-usb {
     ioreg -p IOUSB -w0 | sed 's/[^o]*o //; s/@.*$//' | grep -v '^Root.*'
 }
+function pwinfo {
+	ioreg -w 0 -f -r -c AppleSmartBattery
+}