borgmatic: add fish completion

This commit is contained in:
weriomat
2025-12-25 23:39:52 +01:00
parent 35454d4826
commit 2e8bc7b3ee
+2 -1
View File
@@ -59,7 +59,8 @@ python3Packages.buildPythonApplication rec {
postInstall =
lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd borgmatic \
--bash <($out/bin/borgmatic --bash-completion)
--bash <($out/bin/borgmatic --bash-completion) \
--fish <($out/bin/borgmatic --fish-completion)
''
+ lib.optionalString enableSystemd ''
mkdir -p $out/lib/systemd/system