mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
bitwarden-cli: add zsh completion
This commit is contained in:
parent
69428d2c6f
commit
0200335e08
1 changed files with 10 additions and 6 deletions
|
@ -74,11 +74,15 @@ buildNpmPackage rec {
|
||||||
shopt -u globstar
|
shopt -u globstar
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall =
|
||||||
|
''
|
||||||
# The @bitwarden modules are actually npm workspaces inside the source tree, which
|
# The @bitwarden modules are actually npm workspaces inside the source tree, which
|
||||||
# leave dangling symlinks behind. They can be safely removed, because their source is
|
# leave dangling symlinks behind. They can be safely removed, because their source is
|
||||||
# bundled via webpack and thus not needed at run-time.
|
# bundled via webpack and thus not needed at run-time.
|
||||||
rm -rf $out/lib/node_modules/@bitwarden/clients/node_modules/{@bitwarden,.bin}
|
rm -rf $out/lib/node_modules/@bitwarden/clients/node_modules/{@bitwarden,.bin}
|
||||||
|
''
|
||||||
|
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
|
installShellCompletion --cmd bw --zsh <($out/bin/bw completion --shell zsh)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue