2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Posted at

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
end
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?