Update dotfiles/.profile

This commit is contained in:
Brian Zalewski 2022-11-02 17:39:19 +00:00
parent 12352787ca
commit 2a44787eec

View file

@ -200,13 +200,14 @@ if [ -e /home/linuxbrew/.linuxbrew/bin/brew ]; then
fi
### Go
export GOPATH="${HOME}/.local/go"
export GO111MODULE=on
export PATH="$PATH:${GOPATH}/bin"
if command -v brew >/dev/null && command -v go > /dev/null; then
GOROOT="$(brew --prefix golang)/libexec"
export GOROOT
export PATH="$PATH:${GOROOT}/bin"
export GOPATH="${HOME}/.local/go"
export GO111MODULE=on
export PATH="$PATH:${GOPATH}/bin"
# Setting GOROOT was causing issues with Homebrew Go / ASDF Go version mismatching
# GOROOT="$(brew --prefix golang)/libexec"
# export GOROOT
# export PATH="$PATH:${GOROOT}/bin"
fi
### Android Studio