A collection of custom commands for the Homebrew package manager.
Clone the repo, then copy the commands you want to use to any directory in your $PATH
.
brew executable formula_name
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"
$ 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
- 0: No error
- 1: No argument supplied
- 2: Formula not installed