1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-14 13:01:09 +01:00

direnv: Fix default syntax for nushell integration (#7081)

After nushell/nushell#15654, the direnv integration fails due to default behaving differently when passing a closure.
This commit is contained in:
Joaquín Triñanes 2025-05-22 03:03:57 +02:00 committed by GitHub
parent 6c2eb1e24c
commit a69ebd9702
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -195,7 +195,7 @@ in
| merge ($env.ENV_CONVERSIONS? | default {})
| get -i $key
| get -i from_string
| default {|x| $x}
| if ($in | is-empty) { {|x| $x} } else { $in }
) $value
return [ $key $value ]
}