fix: fix incorrect completions path (#2253)

Changes line 7 path from .../brew to .../brew.fish.
This prevents brew completions link from running unnecessarily and
significantly affecting fish startup times.
This commit is contained in:
a-plastic-bag 2025-02-12 10:51:53 +11:00 committed by GitHub
parent b3f20c074c
commit f9640412f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@ if status --is-interactive
if [ -d /home/linuxbrew/.linuxbrew ]
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
if [ -w /home/linuxbrew/.linuxbrew ]
if [ ! -L (brew --prefix)/share/fish/vendor_completions.d/brew ]
if [ ! -L (brew --prefix)/share/fish/vendor_completions.d/brew.fish ]
brew completions link > /dev/null
end
end