[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for fnm #593

Merged
merged 2 commits into from
Sep 8, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
restore path list
  • Loading branch information
selfagency committed Sep 8, 2023
commit 1ebe7982f540cbe8f9bd9b0d26cca223f15bea3e
8 changes: 7 additions & 1 deletion modules/fnm/fnm.nu
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ export-env {
| parse "$env:{key} = \"{value}\""
)
for v in $var_table {
$env_vars = ($env_vars | insert $v.key $v.value)
mut value: any = null
if ($v.key | str downcase) == 'path' {
$value = ($v.value | split row (char esep))
} else {
$value = $v.value
}
$env_vars = ($env_vars | insert $v.key $value)
}
return $env_vars
}
Expand Down