particle-os-modules/modules/brew/brew-fish-completions.fish
fiftydinar 49fe44917f fix(brew): Broken path in brew-fish-completions.fish pt.2
Forgot that we name it a bit differently than Bluefin
2024-06-03 20:42:20 +02:00

18 lines
722 B
Fish
Executable file

#!/usr/bin/env fish
#shellcheck disable=all
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-fish-completions.fish ]
brew completions link > /dev/null
end
end
if test -d (brew --prefix)/share/fish/completions
set -p fish_complete_path (brew --prefix)/share/fish/completions
end
if test -d (brew --prefix)/share/fish/vendor_completions.d
set -p fish_complete_path (brew --prefix)/share/fish/vendor_completions.d
end
end
end