pritunl-client: add shell completions
This commit is contained in:
parent
f212785e1e
commit
f85cd886c4
1 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "pritunl-client";
|
||||
|
@ -14,8 +14,16 @@ buildGoModule rec {
|
|||
modRoot = "cli";
|
||||
vendorHash = "sha256-miwGLWpoaavg/xcw/0pNBYCdovBnvjP5kdaaGPcRuWk=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/cli $out/bin/pritunl-client
|
||||
installShellCompletion --cmd pritunl-client \
|
||||
--bash <($out/bin/pritunl-client completion bash) \
|
||||
--fish <($out/bin/pritunl-client completion fish) \
|
||||
--zsh <($out/bin/pritunl-client completion zsh)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue