Unverified Commit 1ff31399 authored by Dennis Gosnell's avatar Dennis Gosnell Committed by GitHub
Browse files

Merge pull request #217655 from diegs/patch-1

nodePackages.graphite-cli: fix zsh completion
parents 988cc958 02573873
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -188,10 +188,12 @@ final: prev: {
  graphite-cli = prev."@withgraphite/graphite-cli".override {
    name = "graphite-cli";
    nativeBuildInputs = [ pkgs.installShellFiles ];
    # 'gt completion' auto-detects zshell from environment variables:
    # https://github.com/yargs/yargs/blob/2b6ba3139396b2e623aed404293f467f16590039/lib/completion.ts#L45
    postInstall = ''
      installShellCompletion --cmd gt \
        --bash <($out/bin/gt completion) \
        --zsh <($out/bin/gt completion)
        --zsh <(ZSH_NAME=zsh $out/bin/gt completion)
    '';
  };