Skip to content

Commit

Permalink
lab: fix zsh completion
Browse files Browse the repository at this point in the history
  • Loading branch information
teto committed Jan 7, 2023
1 parent 8e5cc8d commit 4464bb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/applications/version-management/lab/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ buildGoModule rec {
wrapProgram $out/bin/lab \
--prefix PATH ":" "${lib.makeBinPath [ git ]}" \
--suffix PATH ":" "${lib.makeBinPath [ xdg-utils ]}"
$out/bin/lab completion zsh > tmp
sed -i s,.lab-wrapped,lab, tmp
installShellCompletion --cmd lab \
--bash <($out/bin/lab completion bash) \
--fish <($out/bin/lab completion fish) \
--zsh <($out/bin/lab completion zsh)
--zsh <(cat tmp)
'';

meta = with lib; {
Expand Down

0 comments on commit 4464bb0

Please sign in to comment.