aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/gpg-git
blob: 281b793d683dcc5623c9db09eeb66a95221b80a0 (plain)
1
2
3
4
5
#!/bin/sh
GPG_KEY_ID="$GPG_ID_GIT" # see ~/.profile
GPG_KEY_PASSPHRASE="$(pass "gpg/$GPG_KEY_ID.asc" | head -n1)"
echo "gpg $*" >> ~/gpg-git.txt
gpg --batch --no-tty --pinentry-mode loopback --passphrase "$GPG_KEY_PASSPHRASE" "$@"