how to add a directory on mac os to enviroemnont path variable code example
Example 1: $path mac
sudo nano /etc/paths
Example 2: adding this directory to PATH mac
sudo nano /etc/paths
https://www.architectryan.com/2012/10/02/add-to-the-path-on-mac-os-x-mountain-lion/