Skip to content

Instantly share code, notes, and snippets.

echo "enter gpg key ID"
echo "(found on line starting with sec, after slash /)"
echo ""
gpg --list-secret-keys --keyid-format LONG
read gpgKeyID
echo "adding key to git --global user.signingkey"
git config --global user.signingkey $gpgKeyID
echo "adding key to profile"
test -r ~/.bash_profile && echo 'export GPG_TTY=$(tty)' >> ~/.bash_profile
echo 'export GPG_TTY=$(tty)' >> ~/.profile