Skip to content

Commit

Permalink
Add Support to nushell (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanSiqueira authored Apr 19, 2024
1 parent 033730c commit e6edd35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions set-env.nu
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$env.GOROOT = (asdf which go | path split | drop 2 | path join)

0 comments on commit e6edd35

Please sign in to comment.