Skip to content

Instantly share code, notes, and snippets.

@imnosov
Forked from raabf/restart-gpg-agent.sh
Created July 2, 2021 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imnosov/f1a0ddec237b1008cd1607d59571f6ad to your computer and use it in GitHub Desktop.
Save imnosov/f1a0ddec237b1008cd1607d59571f6ad to your computer and use it in GitHub Desktop.
restarts the gpg-agent. often necessary because it is so faulty program.
#!/bin/bash
# restarts the gpg-agent
# often necessary because it is so faulty program
killall gpg-agent || true
gpg-agent --daemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment