Setting $PATH properly on macOS High Sierra

Submitted by Darren Oh on Fri, 03/02/2018 - 11:58

PATH is a variable that determines where the system looks for commands. Most guides I found suggest setting this in a Bash configuration file. But this only affects commands run in a Bash terminal. Global paths on macOS High Sierra are set in /etc/paths. You can also add a file to /etc/paths.d. Files in that directory have their paths included automatically.