summaryrefslogtreecommitdiff
path: root/.config/login.d/10_gpg.sh
blob: 01fcbe268e71a1a9c899b6e67d641b724fab37df (plain)
1
2
3
4
#!/hint/sh
if [ -z "$GPGKEY" -a -f "${GNUPG_HOME:-${HOME}/.gnupg}/gpg.conf" ]; then
	export GPGKEY=`sed -nr 's/^\s*default-key\s+//p' "${GNUPG_HOME:-${HOME}/.gnupg}/gpg.conf"`
fi