nu: Have the command not found hook output modern nix
This commit is contained in:
parent
ffa37b9b3e
commit
b4c9ed1297
1 changed files with 1 additions and 1 deletions
|
@ -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) " +
|
||||
|
|
Loading…
Reference in a new issue