For a new path to be added to PATH environment variable in MacOS just create a new file under /etc/paths.d directory and add write path to be set in the file.
First of all, open the Finder app on your Mac. Now either click Go from the menu at the top of the screen and select Home or use the keyboard shortcut Cmd+ ...