Merge pull request #217655 from diegs/patch-1

nodePackages.graphite-cli: fix zsh completion

authored by

Dennis Gosnell and committed by
GitHub
1ff31399 988cc958

+3 -1
+3 -1
pkgs/development/node-packages/overrides.nix
··· 188 graphite-cli = prev."@withgraphite/graphite-cli".override { 189 name = "graphite-cli"; 190 nativeBuildInputs = [ pkgs.installShellFiles ]; 191 postInstall = '' 192 installShellCompletion --cmd gt \ 193 --bash <($out/bin/gt completion) \ 194 - --zsh <($out/bin/gt completion) 195 ''; 196 }; 197
··· 188 graphite-cli = prev."@withgraphite/graphite-cli".override { 189 name = "graphite-cli"; 190 nativeBuildInputs = [ pkgs.installShellFiles ]; 191 + # 'gt completion' auto-detects zshell from environment variables: 192 + # https://github.com/yargs/yargs/blob/2b6ba3139396b2e623aed404293f467f16590039/lib/completion.ts#L45 193 postInstall = '' 194 installShellCompletion --cmd gt \ 195 --bash <($out/bin/gt completion) \ 196 + --zsh <(ZSH_NAME=zsh $out/bin/gt completion) 197 ''; 198 }; 199