Merge pull request #192034 from ilkecan/pet-install-zsh-completion

pet: install zsh completion file
This commit is contained in:
figsoda 2022-09-20 13:06:32 -04:00 committed by GitHub
commit 1f1e2a6dd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ buildGoModule, fetchFromGitHub, installShellFiles, lib }:
buildGoModule rec {
pname = "pet";
@ -17,6 +17,15 @@ buildGoModule rec {
subPackages = [ "." ];
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
installShellCompletion --cmd pet \
--zsh ./misc/completions/zsh/_pet
'';
meta = with lib; {
description = "Simple command-line snippet manager, written in Go";
homepage = "https://github.com/knqyf263/pet";