ShadowArch/EtcFiles/profile.d/shadowarch-gpg.sh

11 lines
234 B
Bash

### GPG ###
export GPG_TTY=$(tty)
# GPG Key Agent
# Credit: https://wiki.archlinux.org/index.php/GnuPG
if [ `pgrep -afc -u $USER gpg-agent` -lt 1 ] && [ -x `which gpg-agent` ]; then
gpg-agent --daemon 2>&1 | grep -v another
fi