Merge pull request #293322 from patka-123/phpactor_completion

phpactor: add shell completion
This commit is contained in:
Pol Dellaiera 2024-03-04 22:21:29 +01:00 committed by GitHub
commit f70f065cdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,6 @@
{ lib
, fetchFromGitHub
, installShellFiles
, php
}:
@ -16,6 +17,13 @@ php.buildComposerProject (finalAttrs: {
vendorHash = "sha256-0jvWbQubPXDhsXqEp8q5R0Y7rQX3UiccGDF3HDBeh7o=";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd phpactor \
--bash <($out/bin/phpactor completion bash)
'';
meta = {
changelog = "https://github.com/phpactor/phpactor/releases/tag/${finalAttrs.version}";
description = "Mainly a PHP Language Server";