Skip to content

Commit a72ac5d

Browse files
committed
Install handlers in a location where they won't be autoloaded
1 parent 6f2e7c6 commit a72ac5d

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

flake.nix

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,17 @@
5757
postInstall = ''
5858
ln -s $out/bin/comma $out/bin/,
5959
60-
mkdir -p $out/etc/profile.d
61-
mkdir -p $out/etc/nushell
62-
mkdir -p $out/etc/fish/functions
60+
mkdir -p $out/share/comma
6361
64-
cp $src/etc/comma-command-not-found.sh $out/etc/profile.d
65-
cp $src/etc/comma-command-not-found.nu $out/etc/nushell
66-
cp $src/etc/comma-command-not-found.fish $out/etc/fish/functions
62+
cp $src/etc/command-not-found.sh $out/share/comma
63+
cp $src/etc/command-not-found.nu $out/share/comma
64+
cp $src/etc/command-not-found.fish $out/share/comma
6765
68-
patchShebangs $out/etc/profile.d/comma-command-not-found.sh
66+
patchShebangs $out/share/comma/command-not-found.sh
6967
substituteInPlace \
70-
"$out/etc/profile.d/comma-command-not-found.sh" \
71-
"$out/etc/nushell/comma-command-not-found.nu" \
72-
"$out/etc/fish/functions/comma-command-not-found.fish" \
68+
"$out/share/comma/command-not-found.sh" \
69+
"$out/share/comma/command-not-found.nu" \
70+
"$out/share/comma/command-not-found.fish" \
7371
--replace-fail "comma --ask" "$out/bin/comma --ask"
7472
7573
"$out/bin/comma" --mangen > comma.1

0 commit comments

Comments
 (0)