particle-os-modules/modules/brew/brew-fish-completions.fish
Daniel Hast 24c771c694
fix: syntax in brew-fish-completions.fish
Signed-off-by: Daniel Hast <hast.daniel@protonmail.com>
2025-03-10 17:16:20 -04:00

13 lines
533 B
Fish
Executable file

#!/usr/bin/env fish
#shellcheck disable=all
if status --is-interactive; and test $(/usr/bin/id -u) -ne 0
if [ -d /home/linuxbrew/.linuxbrew ]
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
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