Ads Top

Add Pemanently to the PATH on MAC OS

Sometime after you install binary, example composer and package from composer. You must add composer to PATH, so many tutorial export PATH but is temporarly. Then how to add the path permanent.

  1. open terminal and type
    sudo nano /etc/paths

  2. Enter your password, when prompted.
  3. Go to the bottom of the file, and enter the path you wish to add
  4. Hit control-x to quit. and enter Y
  5. Open new terminal and type
    echo $PATH
You should see something similar to this (including the path you’ve added!):
add composer to PATH
add composer to PATH

No comments:

Powered by Blogger.