You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
325 B
Plaintext
11 lines
325 B
Plaintext
11 months ago
|
load-env (fnm env --shell bash
|
||
|
| lines
|
||
|
| str replace 'export ' ''
|
||
|
| str replace -a '"' ''
|
||
|
| split column =
|
||
|
| rename name value
|
||
|
| where name != "FNM_ARCH" and name != "PATH"
|
||
|
| reduce -f {} {|it, acc| $acc | upsert $it.name $it.value }
|
||
|
)
|
||
|
$env.PATH = ($env.PATH | prepend $"($env.FNM_MULTISHELL_PATH)/bin")
|