Dotfiles/site-modules/core/files/nushell/scripts/path.nu
Ade Attwood de1aefac38 chore(shell): add module load the rvm env into nushell
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.
2025-01-11 07:23:58 +00:00

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 ":"
}