Skip to content

Commit 2b00fc5

Browse files
setup goenv in path if exist
1 parent aa4371e commit 2b00fc5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

opt/profiles/.goenv.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# unset GOROOT
44
# https://golang.org/doc/gopath_code.html#GOPATH
55
# export PATH=$PATH:$(go env GOPATH)/bin
6+
if [[ -d $HOME/.goenv ]]; then
7+
export PATH=$HOME/.goenv/bin:$PATH
8+
fi
69

710
export GOENV_ROOT=$HOME/go
811
if [[ "$(uname -r | awk -F'-' '{print $3}')" = "Microsoft" ]] ; then

0 commit comments

Comments
 (0)