Created
October 17, 2024 11:44
-
-
Save jftuga/849f621aef0e3a7834b4ea920bf194eb to your computer and use it in GitHub Desktop.
batt-info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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