Created
April 9, 2016 08:58
-
-
Save phramz/ee839725d4eeb8e5c106b3f1383d727d to your computer and use it in GitHub Desktop.
gpg-agent bash startup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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