Add .chezmoiscripts/10-unlock-bw.sh

Update .config/packages/archgirlie
This commit is contained in:
punkfairie 2024-09-29 16:07:51 -07:00
parent 3aa0f254fb
commit 519d97cb75
Signed by: punkfairie
GPG key ID: A86AF57F837E320F
2 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,13 @@
#!/usr/bin/env sh
type bw >/dev/null 2>&1 || exit
pass={{ joinPath .chezmoi.sourceDir ".bw-password.asc" | include | decrypt }}
if ! bw login --check; then
BW_SESSION=$(bw login "bitwarden@punkfairie.net" "$pass" --raw)
else
BW_SESSION=$(bw unlock "$pass" --raw)
fi
export BW_SESSION

View file

@ -1,4 +1,3 @@
 -> Avoid running yay as root/sudo.
aic94xx-firmware aic94xx-firmware
alsa-utils alsa-utils
amfora amfora