Skip to content

Commit 80fb488

Browse files
committed
Fix GOROOT for fish shells
Follow-up of #22
1 parent 8e32646 commit 80fb488

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libexec/goenv-init

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ mkdir -p "${GOENV_ROOT}/"{shims,versions}
8787
case "$shell" in
8888
fish )
8989
echo "setenv PATH '${GOENV_ROOT}/shims' \$PATH"
90-
echo "setenv GOROOT '$(goenv prefix)'"
9190
echo "setenv GOENV_SHELL $shell"
91+
echo "setenv GOROOT (goenv prefix)"
9292
;;
9393
* )
9494
echo 'export PATH="'${GOENV_ROOT}'/shims:${PATH}"'
95-
echo 'export GOROOT="$(goenv prefix)"'
9695
echo "export GOENV_SHELL=$shell"
96+
echo 'export GOROOT="$(goenv prefix)"'
9797
;;
9898
esac
9999

0 commit comments

Comments
 (0)