How to Get Mac Battery Level from Command Line

I’m a big fan of having as much information as I can get within the command line. I couldn’t go without knowing which git branch I’m on, for example. Another important piece of information I like having is my current battery percentage. To get the current battery level from command line, you can run: pmset -g batt | grep -Eo "\d+%" Since I get lost in command line for hours at a time, having the percentage present saves me the labor of shifting my eyes outside of shell. What information do you like having in your command line? The post How to Get Mac Battery Level from Command Line appeared first on David Walsh Blog. David Walsh Blog… more →
Posted in: JavaScript

US Level 0

My social media accounts have been lit up today by people posting theirĀ US Level and Europe Level scores. US Level and Europe Level are two very simple interactive maps which can score your globetrotting experience by awarding you points based on the number of states or countries you have visited.Working out your US Level is very easy. All you have to do is click on each U.S. state and choose Maps Mania… more →
Posted in: Interactive Maps