Skip to content

Instantly share code, notes, and snippets.

@phramz
Created April 9, 2016 08:58
Show Gist options
  • Select an option

  • Save phramz/ee839725d4eeb8e5c106b3f1383d727d to your computer and use it in GitHub Desktop.

Select an option

Save phramz/ee839725d4eeb8e5c106b3f1383d727d to your computer and use it in GitHub Desktop.
gpg-agent bash startup
if test -f $HOME/.gpg-agent-info && \
kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev/null; then
. $HOME/.gpg-agent-info
export GPG_AGENT_INFO
export SSH_AUTH_SOCK
else
eval `/usr/local/bin/gpg-agent --daemon --write-env-file`
fi
export GPG_TTY=`tty`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment