Last Updated: February 25, 2016
·
899
· kewagi

Manipulate launchctl $PATH

Here's how to set the OS X launchctl path variable from its bash counterpart, and vice versa.

#Set $PATH from launchctl
export PATH=$(launchctl getenv PATH)

#Set launchctl from $PATH
sudo launchctl setenv PATH "$PATH"