Skip to content

Instantly share code, notes, and snippets.

@fish2000
Created October 2, 2026 23:00
Show Gist options
  • Select an option

  • Save fish2000/5f30af55e0abff8b7cf20a3317e1071a to your computer and use it in GitHub Desktop.

Select an option

Save fish2000/5f30af55e0abff8b7cf20a3317e1071a to your computer and use it in GitHub Desktop.
# Requires: “jq” and the Apple “system_profile” command
jqcommand='.SPPowerDataType[] | select(._name == "sppower_ac_charger_information")'
alias powerinfo='system_profiler SPPowerDataType -json | jq "${jqcommand}"'
@fish2000

fish2000 commented Oct 2, 2026

Copy link
Copy Markdown
Author
Screenshot 2026-10-02 at 7 15 16 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment