diff --git a/README.md b/README.md index 4936cbe..c782d65 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,10 @@ To set `GOROOT` in your shell's initialization add the following: **fish shell** `source ~/.asdf/plugins/golang/set-env.fish` +**nushell shell** +Add this to your env.nu +`source ('~/.asdf/plugins/golang/set-env.nu')` + ## When using `go get` or `go install` After using `go get` or `go install` to install a package you need to run `asdf reshim golang` to get any new shims. diff --git a/set-env.nu b/set-env.nu new file mode 100644 index 0000000..976324c --- /dev/null +++ b/set-env.nu @@ -0,0 +1 @@ +$env.GOROOT = (asdf which go | path split | drop 2 | path join)