mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 06:27:29 +00:00
graphite-cli: add fish completion
This commit is contained in:
parent
215701875d
commit
a6224e70a8
@ -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