···7474 shopt -u globstar
7575 '';
76767777- postInstall = ''
7878- # The @bitwarden modules are actually npm workspaces inside the source tree, which
7979- # leave dangling symlinks behind. They can be safely removed, because their source is
8080- # bundled via webpack and thus not needed at run-time.
8181- rm -rf $out/lib/node_modules/@bitwarden/clients/node_modules/{@bitwarden,.bin}
8282- '';
7777+ postInstall =
7878+ ''
7979+ # The @bitwarden modules are actually npm workspaces inside the source tree, which
8080+ # leave dangling symlinks behind. They can be safely removed, because their source is
8181+ # bundled via webpack and thus not needed at run-time.
8282+ rm -rf $out/lib/node_modules/@bitwarden/clients/node_modules/{@bitwarden,.bin}
8383+ ''
8484+ + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
8585+ installShellCompletion --cmd bw --zsh <($out/bin/bw completion --shell zsh)
8686+ '';
83878488 passthru = {
8589 tests = {