Skip to content

Commit

Permalink
Merge pull request #22 from yageek/feature/goroot
Browse files Browse the repository at this point in the history
Setup GOROOT on init.
  • Loading branch information
syndbg committed Apr 2, 2017
2 parents 0c0f4c7 + 02b8a05 commit 8e32646
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libexec/goenv-init
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,12 @@ mkdir -p "${GOENV_ROOT}/"{shims,versions}
case "$shell" in
fish )
echo "setenv PATH '${GOENV_ROOT}/shims' \$PATH"
echo "setenv GOROOT '$(goenv prefix)'"
echo "setenv GOENV_SHELL $shell"
;;
* )
echo 'export PATH="'${GOENV_ROOT}'/shims:${PATH}"'
echo 'export GOROOT="$(goenv prefix)"'
echo "export GOENV_SHELL=$shell"
;;
esac
Expand Down

0 comments on commit 8e32646

Please sign in to comment.