VMWare changes your $PATH
variable, but it does not do in .profile
, or /etc/profile
, neither the globals or locals bashrc
or zshrc
files.
It has its own file inside /etc/paths.d
. The file is called com.vmware.fusion.public
.
You need sudo rights to change the file:
$ sudo vim /etc/paths.d/com.vmware.fusion.public
The file is readonly
and it has as content:
/Applications/VMware Fusion.app/Contents/Public
Notice there are not quotes around it, and the space character is not escaped. You need to add a \
after the VMWare
and before the white space.
Final result:
/Applications/VMware\ Fusion.app/Contents/Public
Quit vim
with :x!
.
Open a new terminal window and run your command again, you should not have that error anymore.