From b4c9ed1297fdff604623429823ad748cce1dc6d9 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Tue, 4 Jul 2023 20:25:47 +0200 Subject: [PATCH] nu: Have the command not found hook output modern nix --- home-manager/modules/nushell/config.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home-manager/modules/nushell/config.nu b/home-manager/modules/nushell/config.nu index d3226e7..b918cce 100644 --- a/home-manager/modules/nushell/config.nu +++ b/home-manager/modules/nushell/config.nu @@ -227,7 +227,7 @@ let-env config = { if ($candidates | is-empty) { return null } - let packages = ($candidates | each {|pkg| $"\tnix-shell -p ($pkg.package)" } | str join "\n") + let packages = ($candidates | each {|pkg| $"\tnix shell nixpkgs#($pkg.package)" } | str join "\n") let multiple = if ($candidates | length) > 1 { " one of the following" } else { "" } ( $"The program (ansi $env.config.color_config.shape_external)($cmdname)(ansi reset) " +