vectorcode: install shell completions (#408885)

authored by Gaétan Lepage and committed by GitHub 0054e27a 8a7e026a

+8
+8
pkgs/by-name/ve/vectorcode/package.nix
··· 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5 versionCheckHook, 6 7 lspSupport ? true, ··· 63 ]; 64 }; 65 66 pythonImportsCheck = [ "vectorcode" ]; 67 68 nativeCheckInputs = 69 [ 70 versionCheckHook 71 ] 72 ++ (with python3Packages; [
··· 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5 + installShellFiles, 6 versionCheckHook, 7 8 lspSupport ? true, ··· 64 ]; 65 }; 66 67 + postInstall = '' 68 + $out/bin/vectorcode --print-completion=bash >vectorcode.bash 69 + $out/bin/vectorcode --print-completion=zsh >vectorcode.zsh 70 + installShellCompletion vectorcode.{bash,zsh} 71 + ''; 72 + 73 pythonImportsCheck = [ "vectorcode" ]; 74 75 nativeCheckInputs = 76 [ 77 + installShellFiles 78 versionCheckHook 79 ] 80 ++ (with python3Packages; [