From adb7face9af957e208db7e75b3a7b6e80f8d1771 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Thu, 4 Jan 2024 20:26:43 +0100 Subject: haskellPackages.hledger: add bash completion files --- pkgs/development/haskell-modules/configuration-nix.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkgs/development/haskell-modules') diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 17aa92471e22..64bb51f1ac31 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -238,6 +238,10 @@ self: super: builtins.intersectAttrs super { done install -v -Dm644 *.info* -t "$out/share/info/" + + if [ -e shell-completion/hledger-completion.bash ]; then + installShellCompletion --name hledger shell-completion/hledger-completion.bash + fi ''; }); -- cgit 1.4.1