config/scripts/run_mutt.sh

18 lines
306 B
Bash
Raw Normal View History

#!/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
else
env=`./run_gpg.sh`
source $env
fi
mutt