Merge pull request #217655 from diegs/patch-1
nodePackages.graphite-cli: fix zsh completion
This commit is contained in:
commit
1ff31399da
1 changed files with 3 additions and 1 deletions
|
@ -188,10 +188,12 @@ final: prev: {
|
||||||
graphite-cli = prev."@withgraphite/graphite-cli".override {
|
graphite-cli = prev."@withgraphite/graphite-cli".override {
|
||||||
name = "graphite-cli";
|
name = "graphite-cli";
|
||||||
nativeBuildInputs = [ pkgs.installShellFiles ];
|
nativeBuildInputs = [ pkgs.installShellFiles ];
|
||||||
|
# 'gt completion' auto-detects zshell from environment variables:
|
||||||
|
# https://github.com/yargs/yargs/blob/2b6ba3139396b2e623aed404293f467f16590039/lib/completion.ts#L45
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installShellCompletion --cmd gt \
|
installShellCompletion --cmd gt \
|
||||||
--bash <($out/bin/gt completion) \
|
--bash <($out/bin/gt completion) \
|
||||||
--zsh <($out/bin/gt completion)
|
--zsh <(ZSH_NAME=zsh $out/bin/gt completion)
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue