dotfiles/.chezmoiscripts/run_before_10-unlock-bw.sh.tmpl

8 lines
200 B
Cheetah
Raw Normal View History

#!/usr/bin/env sh
BW_PASSWORD={{ joinPath .chezmoi.sourceDir ".bw-password.asc" | include | decrypt }}
2024-09-28 10:26:56 -07:00
export BW_PASSWORD
2024-09-28 10:27:11 -07:00
BW_SESSION="$(bw unlock --passwordenv BW_PASSWORD --raw)"
export BW_SESSION