Skip to content

Commit d571b14

Browse files
committed
Add Support to nushell
- Add set-env script for nushell - Add README documentation
1 parent 033730c commit d571b14

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ To set `GOROOT` in your shell's initialization add the following:
3535
**fish shell**
3636
`source ~/.asdf/plugins/golang/set-env.fish`
3737

38+
**nushell shell**
39+
Add this to your env.nu
40+
`source ('~/.asdf/plugins/golang/set-env.nu')`
41+
3842
## When using `go get` or `go install`
3943

4044
After using `go get` or `go install` to install a package you need to run `asdf reshim golang` to get any new shims.

set-env.nu

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$env.GOROOT = (asdf which go | path split | drop 2 | path join)

0 commit comments

Comments
 (0)