How to modify your PATH environment variable UNIX
sudo vi /etc/paths
Then just append the path you want to add on the new line.
If you don't know how to use vi you can choose your
favorite text editor.
You will have to restart your terminal.
See also