Skip to content

Commit 0054e27

Browse files
authored
vectorcode: install shell completions (#408885)
2 parents 8a7e026 + 517cde4 commit 0054e27

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkgs/by-name/ve/vectorcode/package.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
python3Packages,
44
fetchFromGitHub,
5+
installShellFiles,
56
versionCheckHook,
67

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

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+
6673
pythonImportsCheck = [ "vectorcode" ];
6774

6875
nativeCheckInputs =
6976
[
77+
installShellFiles
7078
versionCheckHook
7179
]
7280
++ (with python3Packages; [

0 commit comments

Comments
 (0)