This is a real hack but, it works. Because nushell is not posix rvm will not natively work. This uses a login sub shell to change the ruby version with bash, it then get the all the relevant environment variables and loads them into the nushell environment.
8 lines
170 B
Text
8 lines
170 B
Text
|
|
export-env {
|
|
$env.GOPATH = $"($env.HOME)/Code"
|
|
$env.PATH = $env.PATH
|
|
| split row ":"
|
|
| prepend ([$env.HOME ".cargo" "bin"] | path join)
|
|
| str join ":"
|
|
}
|