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:
parent
6c2eb1e24c
commit
a69ebd9702
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ in
|
||||||
| merge ($env.ENV_CONVERSIONS? | default {})
|
| merge ($env.ENV_CONVERSIONS? | default {})
|
||||||
| get -i $key
|
| get -i $key
|
||||||
| get -i from_string
|
| get -i from_string
|
||||||
| default {|x| $x}
|
| if ($in | is-empty) { {|x| $x} } else { $in }
|
||||||
) $value
|
) $value
|
||||||
return [ $key $value ]
|
return [ $key $value ]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue