mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
direnv: even better nushell fix
Avoid do | complete, because it swallows stderr, which can contain direnv debug output.
This commit is contained in:
@@ -143,9 +143,9 @@ in {
|
||||
let direnv = (
|
||||
# We want to get the stdout from direnv even if it exits with non-zero,
|
||||
# because it will have the DIRENV_ internal variables defined.
|
||||
do { ${getExe cfg.package} export json }
|
||||
| complete
|
||||
| get stdout
|
||||
do --ignore-program-errors { ${
|
||||
getExe cfg.package
|
||||
} export json }
|
||||
| from json --strict
|
||||
| default {}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user