Update dotfiles/.profile
This commit is contained in:
parent
264f63fe4d
commit
0ff6b982d6
1 changed files with 8 additions and 10 deletions
|
@ -185,16 +185,14 @@ fi
|
||||||
export GOPATH="${HOME}/.local/go"
|
export GOPATH="${HOME}/.local/go"
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
export PATH="$PATH:${GOPATH}/bin"
|
export PATH="$PATH:${GOPATH}/bin"
|
||||||
if which go | grep -q 'asdf'; then
|
if which go | grep -q 'asdf' && command -v asdf > /dev/null; then
|
||||||
if command -v asdf > /dev/null; then
|
GOROOT="$(asdf where golang)/go"
|
||||||
GOROOT="$(asdf where golang)/go"
|
export GOROOT
|
||||||
export GOROOT
|
export PATH="$PATH:${GOROOT}/bin"
|
||||||
export PATH="$PATH:${GOROOT}/bin"
|
elif command -v brew > /dev/null; then
|
||||||
elif command -v brew > /dev/null; then
|
GOROOT="$(brew --prefix go)/libexec"
|
||||||
GOROOT="$(brew --prefix go)/libexec"
|
export GOROOT
|
||||||
export GOROOT
|
export "$PATH:${GOROOT}/bin"
|
||||||
export "$PATH:${GOROOT}/bin"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Android Studio
|
### Android Studio
|
||||||
|
|
Loading…
Reference in a new issue