mirror of
https://github.com/kennyp/asdf-golang.git
synced 2024-10-06 04:32:07 +08:00
Add Support to nushell (#135)
This commit is contained in:
parent
033730cb54
commit
e6edd35384
@ -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
1
set-env.nu
Normal file
@ -0,0 +1 @@
|
||||
$env.GOROOT = (asdf which go | path split | drop 2 | path join)
|
Loading…
Reference in New Issue
Block a user