
Written by Robert Koch
TLDR: Look inside/etc/paths.dfor path entries that haven't been cleaned up.
Very annoying! This is probably going to lead me down a rabbit hole somewhere later but at the time I just wanted to get the project I was working on running. So I investigated what value(s) in my path were causing the error, I ran this useful command to split the path based on colons to easily parse it.
This gave me the contents of my path variable in a more human readable format. After staring at it for a few minutes I saw the culprit...
.zshrc file so I knew it wasn't in there, which
really did confuse me for a while. I spent a good hour looking through my path
entries and couldn't find anything. I even tried a general search in my $HOME
for PATH= - no luck./etc.
Having a look in there I found /etc/zprofile and inside it this peculiar
code...path_helper before, so I did a quick man lookup which
lead me to its description.ls in /etc/paths.d gave me
the answers that I was looking forcom.vmware.fusion.public file...That's what we're looking for! So now all that's left to do is delete the file.
/etc/paths.d