Skip to content

Instantly share code, notes, and snippets.

@funkyremi
Created July 24, 2019 14:44
Show Gist options
  • Save funkyremi/c7279d2b1730e8ab6ea9c2e6ccd47094 to your computer and use it in GitHub Desktop.
Save funkyremi/c7279d2b1730e8ab6ea9c2e6ccd47094 to your computer and use it in GitHub Desktop.
# Get remaining battery time
pmset -g batt|grep remaining|cut -d" " -f1,5
# Update Database (for locate)
sudo /usr/libexec/locate.updatedb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment