2010-11-29 17:11:42 +01:00
|
|
|
#!/bin/zsh
|
|
|
|
|
|
|
|
is_running=`ps aux| grep gpg-agent| grep -v grep`
|
|
|
|
|
|
|
|
if [ $is_running ] ; then
|
|
|
|
echo "gpg is running";
|
2012-11-26 15:20:00 +01:00
|
|
|
if [ -f "${HOME}/.gpg-agent-info" ]; then
|
|
|
|
. "${HOME}/.gpg-agent-info"
|
|
|
|
export GPG_AGENT_INFO
|
|
|
|
export SSH_AUTH_SOCK
|
|
|
|
export SSH_AGENT_PID
|
|
|
|
fi
|
2010-11-29 17:11:42 +01:00
|
|
|
else
|
|
|
|
env=`./run_gpg.sh`
|
|
|
|
source $env
|
|
|
|
fi
|
|
|
|
mutt
|