Homebrewのdoctorコマンドを叩いて出たWarningの対処法についてです。
PATHの設定
% brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! Warning: Homebrew's "sbin" was not found in your PATH but you have installed formulae that put executables in /usr/local/sbin. Consider setting your PATH for example like so: echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc
“sbin”がPATHに含まれていませんよとの警告です。
最後に丁寧にコマンドが書かれているので、そのコマンドを実行するだけです。
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc
最後に、.zshrcを再読み込みします。
source ~/.zshrc