X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=bash%2F.bash_profile;h=c80cb2dd74ef94227357e06a45e21e74337efec5;hb=1639aeb9b2bbc063e3a80949e770aea8786ce1d7;hp=6b96684eb3bf7082a44493315a5b41e42d408ee5;hpb=c0578d6193c710b9a6786b18e9d655b15c4fcfb4;p=max%2Fdotfiles.git diff --git a/bash/.bash_profile b/bash/.bash_profile index 6b96684..c80cb2d 100644 --- a/bash/.bash_profile +++ b/bash/.bash_profile @@ -18,11 +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"