Skip to content

SnoringFrog/homebrew-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

A collection of custom commands for the Homebrew package manager.


Commands

Installation

Clone the repo, then copy the commands you want to use to any directory in your $PATH.


brew executables

Usage

brew executable formula_name

Description

Returns a list of commands associated with an installed formula. Only considers the version currently in use (for now). Removes the need to brew unlink <formula> && brew link --verbose <formula> to see what commands were included in a formula. However, if you don't want to use this command, here's a line you can paste into the terminal to get a rougher version of the same info brew executables provides:

formula="formulaYouWant"; brew unlink $formula && brew link --verbose $formula | grep "$(brew --prefix)/bin"

Example

	$ brew executables lua
	lua
	   synonyms: lua-5.2 lua5.2
	luac
	   synonyms: luac-5.2 luac5.2
	luarocks
	luarocks5.2
	luarocks-admin
	luarocks-admin-5.2

Exit codes

  • 0: No error
  • 1: No argument supplied
  • 2: Formula not installed

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages