config/scripts/run_mutt.sh
2015-06-30 15:48:32 +02:00

18 lines
306 B
Bash
Executable File

#!/bin/zsh
is_running=`ps aux| grep gpg-agent| grep -v grep`
if [ $is_running ] ; then
echo "gpg is running";
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