nodePackages.graphite-cli: add bash and zsh completion

This commit is contained in:
Dennis Gosnell 2022-10-25 13:49:57 -04:00
parent be7042a040
commit 4a089cd67f

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 {