From 3c68cfa7374872d8931a7328d0e76831046c4507 Mon Sep 17 00:00:00 2001 From: Anton Bulakh Date: Tue, 21 Mar 2023 16:31:42 +0200 Subject: [PATCH] nix: fix shell completions --- flake.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 8464bb5eb..32f166e5b 100644 --- a/flake.nix +++ b/flake.nix @@ -66,12 +66,10 @@ $out/bin/jj support mangen > ./jj.1 installManPage ./jj.1 - $out/bin/jj support completion --bash > ./completions.bash - installShellCompletion --bash --name ${pname}.bash ./completions.bash - $out/bin/jj support completion --fish > ./completions.fish - installShellCompletion --fish --name ${pname}.fish ./completions.fish - $out/bin/jj support completion --zsh > ./completions.zsh - installShellCompletion --zsh --name _${pname} ./completions.zsh + installShellCompletion --cmd jj \ + --bash <($out/bin/jj support completion --bash) \ + --fish <($out/bin/jj support completion --fish) \ + --zsh <($out/bin/jj support completion --zsh) ''; }; default = self.packages.${system}.jujutsu;