You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Nothing. Right now it doesn't return any packages on Apple Silicon because the path glob is hard-coded to /usr/local/Cellar/*. By default, Homebrew installs to /opt/homebrew instead of /usr/local on Apple Silicon, and this path is also configurable by the user, so it could be anywhere. Running brew --cellar just returns the configured Homebrew installation path, and then that path is globbed.
How long does it take to fetch packages now?
If I run the current version 100x in a loop, then swap out the path with $(brew --cellar) and repeat, I get an average increase of 0.0059s per pfetch command.
Also, one other thing - The exact same command is run a few lines above this under Linux.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Query
brewfor package list instead of using the hard-coded/usr/local/Cellar/*path. The homebrew installation path is configurable, and for instance, uses/opt/homebrewon Apple Silicon (https://docs.brew.sh/FAQ#why-is-the-default-installation-prefix-opthomebrew-on-apple-silicon).