SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to change environment variables permanently on macOS, set them in /etc/paths. Note, this file is read-only by default, so you'll have to chmod for write permissions.
/etc/paths