Merge pull request #192034 from ilkecan/pet-install-zsh-completion
pet: install zsh completion file
This commit is contained in:
commit
1f1e2a6dd6
1 changed files with 10 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue