Posted at

fishシェルでの `brew doctor` で `"config" scripts exist outside your system or Homebrew directories.`

More than 1 year has passed since last update.

phpbrewpyenv を入れた際に brew doctor でコケる様になってしまいました。


Avoid warning of brew doctor with fish & pyenv

参考にさせていただき、phpbrew も追加しました。

function brew

set tmp_PATH $PATH

# for phpbrew
set -l i (contains -i $HOME/.phpbrew/php/php-7.1.11/bin $PATH)
set PATH[$i] /bin # /bin is dummy

# for pyenv
set -l i (contains -i $HOME/.pyenv/shims $PATH)
set PATH[$i] /bin # /bin is dummy

command brew $argv

set PATH $tmp_PATH