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