Found some bad advice for the Homebrew installation
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:
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.plistand normally it just contains /usr/bin:/bin:/usr/sbin:/sbin
You can conveniently get the path from that file with
launchctl getenv PATHSo to prepend to that path you want to run this instead
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_pathTo restore your defaults this seems to work
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.
Source: neovide/neovide