Merge pull request #316749 from SFrijters/atuin-conditional-completions

This commit is contained in:
Sandro 2024-06-05 13:14:22 +02:00 committed by GitHub
commit 9731173bc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,7 @@ rustPlatform.buildRustPackage rec {
darwin.apple_sdk_11_0.frameworks.SystemConfiguration
];
postInstall = ''
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd atuin \
--bash <($out/bin/atuin gen-completions -s bash) \
--fish <($out/bin/atuin gen-completions -s fish) \