vectorcode: install shell completions

This commit is contained in:
Maxime Brunet
2025-05-19 19:43:32 -03:00
parent 8d0274556b
commit 517cde4cff
+8
View File
@@ -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; [