Gixed gpg-agent broken on login

This commit is contained in:
agryphus 2023-10-23 23:46:18 -04:00
parent 3acaa93b14
commit 8b2928ed1f

View file

@ -14,11 +14,10 @@ setopt hist_verify # show command with history expansion to user befo
unsetopt ksharrays # 0-indexing arrays breaks highlighting unsetopt ksharrays # 0-indexing arrays breaks highlighting
# Start gpg agent # Start gpg agent
if [ -z "$(pidof gpg-agent)" ]; then
unset SSH_AGENT_PID unset SSH_AGENT_PID
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
killall gpg-agent
eval $(gpg-agent --daemon) eval $(gpg-agent --daemon)
fi
export PATH="$PATH:~/.local/share/cargo/bin/" export PATH="$PATH:~/.local/share/cargo/bin/"
export PATH="$PATH:$JAVA_HOME/bin/" export PATH="$PATH:$JAVA_HOME/bin/"