Add .bw-password.asc
Add .chezmoiscripts/10-unlock-bw.sh
This commit is contained in:
parent
fcfff9cee8
commit
a3d7db00cc
2 changed files with 11 additions and 0 deletions
6
.bw-password.asc
Normal file
6
.bw-password.asc
Normal file
|
@ -0,0 +1,6 @@
|
|||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
jA0ECQMIAdvrnwZA6vH/0k4BbpJaxRE/WBrPHh/+FEz76PXX3zGkiu+ETcqKY10+
|
||||
RX68z4fcbzxK3nWltb8k7TPjjgLgUkoAYJD7wGVp/v7tijhWcfyH5/sS+lF80ao=
|
||||
=1IPu
|
||||
-----END PGP MESSAGE-----
|
5
.chezmoiscripts/run_before_10-unlock-bw.sh.tmpl
Normal file
5
.chezmoiscripts/run_before_10-unlock-bw.sh.tmpl
Normal 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
|
Loading…
Reference in a new issue