#!/bin/bash
# source me!

FILE="${HOME}/.gnupg/agent-info"
#todo: --enable-ssh-support
gpg-agent --daemon \
	--display "${DISPLAY}" \
	--ttyname "$(tty)" \
	--keep-tty \
	--keep-display \
	--write-env-file "${FILE}" \
 	--pinentry-program "/usr/bin/pinentry.py"
echo "export GPG_AGENT_INFO" >> "${FILE}"
source "${FILE}"
