Unverified Commit 0054e27a authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

vectorcode: install shell completions (#408885)

parents 8a7e026a 517cde4c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  python3Packages,
  fetchFromGitHub,
  installShellFiles,
  versionCheckHook,

  lspSupport ? true,
@@ -63,10 +64,17 @@ python3Packages.buildPythonApplication rec {
    ];
  };

  postInstall = ''
    $out/bin/vectorcode --print-completion=bash >vectorcode.bash
    $out/bin/vectorcode --print-completion=zsh >vectorcode.zsh
    installShellCompletion vectorcode.{bash,zsh}
  '';

  pythonImportsCheck = [ "vectorcode" ];

  nativeCheckInputs =
    [
      installShellFiles
      versionCheckHook
    ]
    ++ (with python3Packages; [