Add .bw-password.asc

Add .chezmoiscripts/10-unlock-bw.sh
This commit is contained in:
punkfairie 2024-09-28 10:24:54 -07:00
parent fcfff9cee8
commit a3d7db00cc
Signed by: punkfairie
GPG key ID: A86AF57F837E320F
2 changed files with 11 additions and 0 deletions

6
.bw-password.asc Normal file
View file

@ -0,0 +1,6 @@
-----BEGIN PGP MESSAGE-----
jA0ECQMIAdvrnwZA6vH/0k4BbpJaxRE/WBrPHh/+FEz76PXX3zGkiu+ETcqKY10+
RX68z4fcbzxK3nWltb8k7TPjjgLgUkoAYJD7wGVp/v7tijhWcfyH5/sS+lF80ao=
=1IPu
-----END PGP MESSAGE-----

View file

@ -0,0 +1,5 @@
#!/usr/bin/env sh
BW_PASSWORD={{ joinPath .chezmoi.sourceDir ".bw-password.asc" | include | decrypt }}
BW_SESSION="$(bw unlock "$BW_PASSWORD" --raw)"
export BW_SESSION