if [ "$(uname)" == "Darwin" ]; then # start darwin module # if the go tool is installed then export the go GO* vars # to any GUI apps like emacs. if [ $(which go) ]; then for e in $(go env | grep GO); do var=$(expr $e : '\(.*\)=') val=$(expr $e : '.*=\(.*\)') #if [ $var ]; then # launchctl setenv $var $val #fi done; fi; # end go environment setup if [ -d "/opt/brew" ]; then # setup brew cgo flags so that it can find brew libs export CFLAGS="-I/opt/brew/include" export CPPFLAGS="-I/opt/brew/include" export LDFLAGS="-L/opt/brew/lib" export CGO_CFLAGS="${CFLAGS}" export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" fi insert_path_element_before /Applications/Julia-1.6.app/Contents/Resources/julia/bin insert_path_element_before "/Applications/Visual Studio Code.app/Contents/Resources/app/bin" fi # end darwin module