This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |