1
0
Fork 0
mirror of https://github.com/SeriousBug/dotfiles synced 2024-11-21 20:28:56 -06:00

Set env variables in asdf install script for go

This commit is contained in:
Kaan Barmore-Genç 2024-09-22 12:34:17 -05:00
parent e313e38467
commit 1617781d49

View file

@ -49,3 +49,13 @@ done
#git clone --depth=1 https://github.com/mattmc3/antidote.git ${ZDOTDIR:-~}/.antidote #git clone --depth=1 https://github.com/mattmc3/antidote.git ${ZDOTDIR:-~}/.antidote
# If Go is already installed on the system (e.g. Codespaces), the built-in
# install interferes with the asdf install.
unset GOPATH
unset GOROOT
echo "export GOPATH=$(go env GOPATH)" >> ~/.bashrc
echo "export GOROOT=$(go env GOROOT)" >> ~/.bashrc
echo "export GOPATH=$(go env GOPATH)" >> ~/.zshrc
echo "export GOROOT=$(go env GOROOT)" >> ~/.zshrc
echo "set --export GOPATH (go env GOPATH)" >> ~/.config/fish/config.fish
echo "set --export GOROOT (go env GOROOT)" >> ~/.config/fish/config.fish