Fix syntax in brew-fish-completions.fish (#396)

The patch added earlier today to not load brew into the shell
environment for root introduced a syntax error that breaks brew
integration with fish for all users (not just root). This fixes the
error.
This commit is contained in:
fiftydinar 2025-03-10 22:22:49 +01:00 committed by GitHub
commit 797519720b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
#!/usr/bin/env fish
#shellcheck disable=all
if status --is-interactive and if test $(/usr/bin/id -u) -ne 0
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