Add Support to nushell (#135)

This commit is contained in:
Allan Siqueira 2024-04-19 09:14:03 -03:00 committed by GitHub
parent 033730cb54
commit e6edd35384
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -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.

1
set-env.nu Normal file
View File

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