Skip to content

Instantly share code, notes, and snippets.

@absqueued
Forked from raabf/restart-gpg-agent.sh
Created February 17, 2022 13:20
Show Gist options
  • Save absqueued/b6daf141061aeaa27b689a3c4d4f551a to your computer and use it in GitHub Desktop.
Save absqueued/b6daf141061aeaa27b689a3c4d4f551a 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