balanceofsatoshis: add shell completion

This commit is contained in:
Maria 2022-07-26 08:06:35 -04:00
parent 98db578afa
commit 8c10a967f7
No known key found for this signature in database
GPG key ID: 94B5417B30CF6EA4

View file

@ -85,6 +85,16 @@ final: prev: {
meta = oldAttrs.meta // { platforms = lib.platforms.linux; };
});
balanceofsatoshis = prev.balanceofsatoshis.override {
nativeBuildInputs = [ pkgs.installShellFiles ];
postInstall = ''
installShellCompletion --cmd bos\
--bash <($out/bin/bos completion bash)\
--zsh <($out/bin/bos completion zsh)\
--fish <($out/bin/bos completion fish)
'';
};
bitwarden-cli = prev."@bitwarden/cli".override {
name = "bitwarden-cli";
};