nix: fix shell completions

This commit is contained in:
Anton Bulakh 2023-03-21 16:31:42 +02:00 committed by Anton Bulakh
parent 942bb4c8c4
commit 3c68cfa737

View file

@ -66,12 +66,10 @@
$out/bin/jj support mangen > ./jj.1 $out/bin/jj support mangen > ./jj.1
installManPage ./jj.1 installManPage ./jj.1
$out/bin/jj support completion --bash > ./completions.bash installShellCompletion --cmd jj \
installShellCompletion --bash --name ${pname}.bash ./completions.bash --bash <($out/bin/jj support completion --bash) \
$out/bin/jj support completion --fish > ./completions.fish --fish <($out/bin/jj support completion --fish) \
installShellCompletion --fish --name ${pname}.fish ./completions.fish --zsh <($out/bin/jj support completion --zsh)
$out/bin/jj support completion --zsh > ./completions.zsh
installShellCompletion --zsh --name _${pname} ./completions.zsh
''; '';
}; };
default = self.packages.${system}.jujutsu; default = self.packages.${system}.jujutsu;