Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get MacBook battery info for 'bucktick'
#!/bin/sh
/usr/bin/pmset -g ps | tail -n 1 | awk '{print $2", " $4" remains"}' | sed 's/;//';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment