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:
commit
797519720b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue