Skip to content

Instantly share code, notes, and snippets.

@ScottWales
Created June 30, 2017 05:47
Show Gist options
  • Save ScottWales/9d1b45ffcc452186af0b083e4c534dd0 to your computer and use it in GitHub Desktop.
Save ScottWales/9d1b45ffcc452186af0b083e4c534dd0 to your computer and use it in GitHub Desktop.
if ( -f ~/.gpg-agent-info ) then
setenv GPG_AGENT_INFO `sed -n 's/GPG_AGENT_INFO=\(.*\)/\1/p' ~/.gpg-agent-info`
endif
if ( ! -S `echo $GPG_AGENT_INFO | sed 's/:.*\+$//'` ) then
eval `gpg-agent --daemon --allow-preset-passphrase --batch --max-cache-ttl 43200 --write-env-file ~/.gpg-agent-info`
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment