is_brewed

indicates if a package is installed via homebrew

a simply utility to call to determine if something is already installed via homebrew.

I use this in conjunction with yadm to make my bootstrap scripts idempotent.

Usage

USAGE: is_brewed <formula name>
       Outputs 'true' or 'false' and exits with 0 or 1 respectively.
       If the package is not found it'll look for similarly 
       named packages and output additional lines, if it finds
       any that contain your input.

Metadata:

Tags:

  • homebrew
  • search