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

7 lines
201 B
Bash

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