How can I recover my PATH of mac
Solution 1:
Just reset your PATH to the macOS default by pasting this into your Terminal window:
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
That’ll get you access to the editors you’d normally use to edit your shell startup scripts. So you should be able to then fix the damage.