Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 482 Bytes
# @2012 Patrik Sundberg
# We want to start gpg-agent before keychain to pass arguments
WHOAMI=$(whoami)
GPG_AGENTS=$(pgrep -U $WHOAMI gpg-agent |wc -l)
if [ $GPG_AGENTS -ne 1 ];then
eval $(gpg-agent --daemon --allow-preset-passphrase --write-env-file "${HOME}/.gpg-agent-info")
else
. "${HOME}/.gpg-agent-info"
export GPG_AGENT_INFO
fi
eval `keychain --eval --inherit any id_rsa`
# let's source the bashrc at end of login
if [ -e ~/.bashrc ]; then
source ~/.bashrc
fi
Jump to Line
Something went wrong with that request. Please try again.