$PATH = all of the places your MAC looks for one word Terminal commands/apps
So that when your type a command into Terminal, like 'git', MAC will know where to look for it.
So that when your type a command into Terminal, like 'git', MAC will know where to look for it.
EXAMPLE (replace with your directory): /opt/bin
STATUS
- Terminal
- echo $PATH
ADD
USER RESET
nano /etc/environment
- Terminal
-
Add at beginning: PATH=/opt/bin:$PATHAdd at end: PATH=$PATH:/opt/bin
USER RESET
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
MASTERnano /etc/environment