direnv: fix broken nushell integration (#7498)

This commit is contained in:
Joaquín Triñanes
2025-07-18 07:00:04 +02:00
committed by GitHub
parent dcfd70f80f
commit d0300c8808

View File

@@ -175,8 +175,7 @@ in
}
}
| merge ($env.ENV_CONVERSIONS? | default {})
| get ([[value, optional, insensitive]; [$key, true, true]] | into cell-path)
| get from_string?
| get ([[value, optional, insensitive]; [$key, true, true] [from_string, true, false]] | into cell-path)
| if ($in | is-empty) { {|x| $x} } else { $in }
) $value
return [ $key $value ]