trashy: move installShellCompletion to postInstall for consistency

This commit is contained in:
Julius Michaelis
2024-08-04 10:50:48 +09:00
parent 87e574e110
commit 2fd334dc73
+1 -1
View File
@@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ installShellFiles ];
preFixup = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd trash \
--bash <($out/bin/trash completions bash) \
--fish <($out/bin/trash completions fish) \