dotfiles/.bash_rc.d/99.darwin.sh

29 lines
906 B
Bash
Raw Normal View History

2019-10-20 16:24:07 -05:00
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
2020-04-30 11:47:38 -05:00
2021-10-29 15:24:03 -04:00
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"
2020-04-30 11:47:38 -05:00
2019-10-20 16:24:07 -05:00
fi # end darwin module