Paths in MacOS

quickly define paths systems-wide in macos

About

This will add system-wide path definitions.

Steps

1- Open /etc/paths in nano:

sudo nano /etc/paths

2- In nano, add directory paths, e.g. for Python modules like uvicorn or hugo:

/Users/<user>Library/Python/3.9/bin

  • Control-x to quit.
  • Enter “Y” to save the modified buffer.

3- Start a new Terminal session

Licensed under CC BY-NC-SA 4.0
Built with Hugo
Theme Stack designed by Jimmy