Skip to content

Instantly share code, notes, and snippets.

@jftuga
Created October 17, 2024 11:44
Show Gist options
  • Save jftuga/849f621aef0e3a7834b4ea920bf194eb to your computer and use it in GitHub Desktop.
Save jftuga/849f621aef0e3a7834b4ea920bf194eb to your computer and use it in GitHub Desktop.
batt-info
# to be placed in .zshrc or .bashrc on MacOS
function batt-info() {
echo
system_profiler SPPowerDataType | grep Wattage | cut -c 7-
echo
pmset -g batt
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment