mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
direnv: even better nushell fix
Avoid do | complete, because it swallows stderr, which can contain direnv debug output.
This commit is contained in:
parent
57e6b30d18
commit
853e7bd24f
1 changed files with 3 additions and 3 deletions
|
@ -143,9 +143,9 @@ in {
|
||||||
let direnv = (
|
let direnv = (
|
||||||
# We want to get the stdout from direnv even if it exits with non-zero,
|
# We want to get the stdout from direnv even if it exits with non-zero,
|
||||||
# because it will have the DIRENV_ internal variables defined.
|
# because it will have the DIRENV_ internal variables defined.
|
||||||
do { ${getExe cfg.package} export json }
|
do --ignore-program-errors { ${
|
||||||
| complete
|
getExe cfg.package
|
||||||
| get stdout
|
} export json }
|
||||||
| from json --strict
|
| from json --strict
|
||||||
| default {}
|
| default {}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue