Skip to content

Instantly share code, notes, and snippets.

@rex
Last active December 31, 2015 21:29
Show Gist options
  • Save rex/8047488 to your computer and use it in GitHub Desktop.
Save rex/8047488 to your computer and use it in GitHub Desktop.
ZSH One-Liners
# List all Homebrew LaunchAgents (*.plist) files
grep -irl --include homebrew\*.plist "" /usr/local/opt
# Count all Homebrew LaunchAgents (*.plist) files
grep -irl --include homebrew\*.plist "" /usr/local/opt | wc -l
# List all registered Vagrant machines
vagrant global-status | ruby -lne 'STDIN.readlines.each {|line| line.match(/^[a-z0-9]{7}/) {|m| puts line } }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment