#3574·neovide

Found some bad advice for the Homebrew installation

Author: kswopeCreated Sep 22, 2026Updated Sep 22, 2026

elsehttps://neovide.dev/installation.html#homebrew

If you are encountering issues with Neovide not being found by your shell, you can try to add the brew binary path to your PATH environment variable:

bash
sudo launchctl config user path "$(brew --prefix)/bin:${PATH}"

Well I found out the hard way, running that dumps your entire existing shell $PATH into a mac .plist file permanently. You'll find that when you want to remove things from your path, like .nvm, or chruby ruby version, you wont be able to find it in all your dot files.

The file that is modified is

/private/var/db/com.apple.xpc.launchd/config/user.plist

and normally it just contains /usr/bin:/bin:/usr/sbin:/sbin

You can conveniently get the path from that file with

launchctl getenv PATH

So to prepend to that path you want to run this instead

bash
sudo launchctl config user path "$(brew --prefix)/bin:$(launchctl getenv PATH)"

FWI the default path can be found in this command

sysctl -n user.cs_path

To restore your defaults this seems to work

bash
sudo launchctl config user path $(sysctl -n user.cs_path)

This bad advice originally comes from the homebrew website where its still there. Somebody else tell them, I'm going to bed.