Add .chezmoiscripts/10-unlock-bw.sh
Update .config/packages/archgirlie
This commit is contained in:
parent
3aa0f254fb
commit
519d97cb75
2 changed files with 13 additions and 1 deletions
13
.chezmoiscripts/run_before_10-unlock-bw.sh.tmpl
Normal file
13
.chezmoiscripts/run_before_10-unlock-bw.sh.tmpl
Normal 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
|
|
@ -1,4 +1,3 @@
|
||||||
[1m[33m -> [0m[0mAvoid running yay as root/sudo.
|
|
||||||
aic94xx-firmware
|
aic94xx-firmware
|
||||||
alsa-utils
|
alsa-utils
|
||||||
amfora
|
amfora
|
||||||
|
|
Loading…
Reference in a new issue