#!/bin/sh #print battery info in a short way if uname -o | grep -qi "linux" then acpi -b | cut -d"," -f 1-2 | cut -d" " -f 3- else echo "TODO BSD battery" exit 1 fi