Merge pull request #285364 from diegs/graphite-cli-fish-completion

graphite-cli: add fish completion
This commit is contained in:
Robert Schütz 2024-02-07 00:05:42 +00:00 committed by GitHub
commit ed6a526141
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
{ lib
, buildNpmPackage
, fetchurl
, git
, installShellFiles
}:
@ -20,6 +21,7 @@ buildNpmPackage rec {
'';
nativeBuildInputs = [
git
installShellFiles
];
@ -28,6 +30,7 @@ buildNpmPackage rec {
postInstall = ''
installShellCompletion --cmd gt \
--bash <($out/bin/gt completion) \
--fish <(GT_PAGER= $out/bin/gt fish) \
--zsh <(ZSH_NAME=zsh $out/bin/gt completion)
'';