Merge pull request #197770 from cdepillabout/graphite-completions

nodePackages.graphite-cli: add bash and zsh completion
This commit is contained in:
Dennis Gosnell 2022-10-28 10:25:46 -04:00 committed by GitHub
commit 1e8348a3ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,6 +191,12 @@ final: prev: {
graphite-cli = prev."@withgraphite/graphite-cli".override {
name = "graphite-cli";
nativeBuildInputs = [ pkgs.installShellFiles ];
postInstall = ''
installShellCompletion --cmd gt \
--bash <($out/bin/gt completion) \
--zsh <($out/bin/gt completion)
'';
};
graphql-language-service-cli = prev.graphql-language-service-cli.override {