Skip to content

Instantly share code, notes, and snippets.

@CroneKorkN
Last active May 17, 2017 06:37
Show Gist options
  • Save CroneKorkN/b0d67026383ea1a972a74cbaac4f38ce to your computer and use it in GitHub Desktop.
Save CroneKorkN/b0d67026383ea1a972a74cbaac4f38ce to your computer and use it in GitHub Desktop.
bettertochtool cpu usage
return do shell script "echo cpu $(ps axo %cpu | awk '{s+=$1}END{print s}' | cut -f 1 -d '.')%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment