Skip to content

Commit 36e6dec

Browse files
committed
feat: support command-not-found.nu
1 parent 4194c58 commit 36e6dec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nix-index-wrapper.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@ symlinkJoin {
1717
1818
mkdir -p $out/etc/profile.d
1919
rm -f "$out/etc/profile.d/command-not-found.sh"
20+
rm -f "$out/etc/profile.d/command-not-found.nu"
2021
substitute \
2122
"${nix-index-unwrapped}/etc/profile.d/command-not-found.sh" \
2223
"$out/etc/profile.d/command-not-found.sh" \
2324
--replace-fail "${nix-index-unwrapped}" "$out"
25+
26+
substitute \
27+
"${nix-index-unwrapped}/etc/profile.d/command-not-found.nu" \
28+
"$out/etc/profile.d/command-not-found.nu" \
29+
--replace-fail "${nix-index-unwrapped}" "$out"
2430
'';
2531

2632
meta.mainProgram = "nix-locate";

0 commit comments

Comments
 (0)