MacOS - update PATH variable
22 Apr 2017
Update $PATH for single user
To update $PATH
variable for single user you just have to add one line to ~/.bash_profile
file (for example lets add bin dir of PostgreSQL):
Restart terminal and check if it has worked:
Update $PATH for all users
To update $PATH
variable for all system users, you have to edit /etc/paths
file.
Lets add PostgreSQL to PATH again:
Now restart terminal and check that $PATH
variable is modified.
Inspiration nixCraft: Mac OS X: Set / Change $PATH Variable