搜索个包名要等好久,加 -d
提示要连个网,好像没法关闭。类似的每次 install 都要先更新,也很慢。
~ $ time brew search qr
==> Formulae
liblqr qrcp qrencode qrupdate
==> Casks
homebrew/cask/qr-journal
brew search qr 6.36s user 1.19s system 70% cpu 10.765 total
~ $ time brew search -d qr
/usr/bin/curl --disable --globoff --show-error --user-agent Homebrew/2.5.11-41-gf00e094\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.15.7\)\ curl/7.64.1 --header Accept-Language:\ en --retry 3 --location https://api.github.com/search/code\?q=user\%3AHomebrew\+path\%3AFormula\+path\%3ACasks\+path\%3A.\+filename\%3Aqr\+extension\%3Arb\&per_page=100 --header Accept:\ application/vnd.github.v3\+json --write-out '
'\%\{http_code\} --header Accept:\ application/vnd.github.antiope-preview\+json --dump-header /private/tmp/github_api_headers20201119-56704-c8zq8u
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/liblqr.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::AliasLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/qrencode.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/qrcp.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/qrupdate.rb
==> Formulae
liblqr qrcp qrencode qrupdate
==> Casks
homebrew/cask/qr-journal
brew search -d qr 6.32s user 1.43s system 59% cpu 12.990 total
~ $