This requires hitting the network, which makes the first invocation
slow. The results are inaccurate as it only pulls down the first page of
results. It is also prone to false-positives.
A better implementation is welcome, but in the years since I wrote this
code I can't think of a single time where I found it useful.
* Added `pin` et. al. to manpage.
* Added `brew pin` to `brew.1` * Added `brew unpin` to `brew.1`
* Added `brew list --pinned` to `brew.1`
* Added information about frozen formulae to `brew upgrade` in `brew.1`
* Added `pin` et.al. to completion scripts.
* Unpin formulae when uninstalling them
* Unpin and re-pin formulae when upgrading (avoids stale symlink)
References Homebrew/homebrew#18386.
ClosesHomebrew/homebrew#18515.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
The fish completion hadn't been updated since 2009; this brings it up
to date. Changes include:
* Create the list of commands the same way as in bash completion
* Add every option for every current command, with descriptions
* Fixes a bug in fish_complete_brew_command
* Allow fish_complete_brew_command to take multiple commands
* Expand functionality of fish_complete_homebrew_formula to support
other commands and taps, and change name to reflect new functionality
Tested on fishfish, but should be compatible with fish.