mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 11:53:51 +00:00
Merge pull request #285364 from diegs/graphite-cli-fish-completion
graphite-cli: add fish completion
This commit is contained in:
commit
ed6a526141
@ -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)
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user