X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=bash%2F.bash_profile;fp=bash%2F.bash_profile;h=c80cb2dd74ef94227357e06a45e21e74337efec5;hb=6064692c3e68554e4aa791befac2bf8b496e4aee;hp=c4958eba66df8a0efa9538ffa4eadba04ba02ddd;hpb=37c0c591dbdcc61e0e549838bfb0b8422344ef10;p=max%2Fdotfiles.git diff --git a/bash/.bash_profile b/bash/.bash_profile index c4958eb..c80cb2d 100644 --- a/bash/.bash_profile +++ b/bash/.bash_profile @@ -18,13 +18,7 @@ if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi -envfile="$HOME/.gnupg/gpg-agent.env" -if [[ -e "$envfile" ]] && kill -0 $(grep GPG_AGENT_INFO "$envfile" | cut -d: -f 2) 2>/dev/null; then - eval "$(cat "$envfile")" -else - eval "$(gpg-agent --daemon --enable-ssh-support --write-env-file "$envfile")" -fi -export GPG_AGENT_INFO # the env file does not contain the export statement -export SSH_AUTH_SOCK # enable gpg-agent for ssh - export TMPDIR="/home/max/.local/tmp" + +gpg-agent --daemon --enable-ssh-support \ + --write-env-file "${HOME}/.gpg-agent-info"