Is there a way to set the
/etc/paths without the need to reboot your Mac? I know I can do it using an alias but it's not permanent.
For example, I want to set the
PATH for MySQL.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
Straightforward way to edit PATH env variable for Terminal mode:
(This is just a different way to do what is mentioned above in case you don't have R/W permission, as I did not)
Navigate to the /private/etc/paths in Finder, r-click, Get Info, Select Sharing & Permissions, change Everyone to Read & Write, edit and save the file (append the new path to the end of the list), then restore the permissions if necessary.