Skip to content

Instantly share code, notes, and snippets.

@pancudaniel7
Last active April 3, 2023 07:00
Show Gist options
  • Save pancudaniel7/e09f844bf49052b162ffdd9341c6cd57 to your computer and use it in GitHub Desktop.
Save pancudaniel7/e09f844bf49052b162ffdd9341c6cd57 to your computer and use it in GitHub Desktop.
#!/bin/bash
# first param is gpg key id (gpg --list-secret-keys --keyid-format LONG (sec field from / to right) - to get this)
echo 'export GPG_TTY=$(tty)' >> ~/.zshrc
brew uninstall gpg
brew install gpg2
brew install pinentry-mac
gpg --list-keys
git config --global user.signingkey $1
git config --global gpg.program $(which gpg)
git config --global commit.gpgsign true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment