Revert "Performance issue with fish shell (#1483)" (#1528)

This reverts commit 063d8828a0.
This commit is contained in:
Zeglius 2024-08-21 23:52:30 +02:00 committed by GitHub
parent 181497bc17
commit e55ea85217
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,32 +1,18 @@
#!/usr/bin/fish
#shellcheck disable=all
set -g __brew_instance_initialize 0
set -g __brew_binary /home/linuxbrew/.linuxbrew/bin/brew
function brew_new_instance
alias brew=$__brew_binary
if test $__brew_instance_initialize = 0
if status --is-interactive
if [ -d /home/linuxbrew/.linuxbrew ]
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 ]
brew completions link > /dev/null
end
if [ ! -L (brew --prefix)/share/fish/vendor_completions.d/brew ]
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
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
set -p fish_complete_path (brew --prefix)/share/fish/vendor_completions.d
end
end
end
set __brew_instance_initialize 1
brew $argv
end
end
alias brew=brew_new_instance