Move bash config to shell subdir

This commit is contained in:
2025-11-13 13:52:25 -05:00
parent 60d5d88e96
commit 7ef57ef155
16 changed files with 9 additions and 9 deletions

View File

@@ -0,0 +1,12 @@
cardstat() {
local workdir="${GNUPGHOME:-$HOME/.gnupg}"
if ! gpg --card-status &>/dev/null; then
systemctl restart pcscd;
fi
touch "${workdir}/unlock.txt";
gpg --sign "${workdir}/unlock.txt";
rm -f "${workdir}/unlock.txt.gpg";
rm -f "${workdir}/unlock.txt";
gpg --card-status;
}