]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Use gpg agent as ssh agent again
authorMaximilian Friedersdorff <maximilian.friedersdorff@envsys.co.uk>
Wed, 26 Oct 2022 11:33:02 +0000 (12:33 +0100)
committerMaximilian Friedersdorff <maximilian.friedersdorff@envsys.co.uk>
Wed, 26 Oct 2022 11:33:02 +0000 (12:33 +0100)
states/zsh/files/zshenv
states/zsh/files/zshrc

index ab80266ddf37230d515272815fffc45ae8ec05e1..f36b7d0fd9d793d7092f4d3312fc9ca20e11b0e2 100644 (file)
@@ -32,3 +32,6 @@ export GPG_TTY=$(tty)
 export _JAVA_AWT_WM_NONREPARENTING=1
 
 export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
+
+unset SSH_AGENT_PID
+export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh"
index 458a57657dfd07628eb851711f384270b0fda707..2e44d7f41f23db42c01790b3cc72b844d11bee22 100644 (file)
@@ -86,3 +86,6 @@ chpwd() {
         fi
     fi
 }
+
+export GPG_TTY=$(tty)
+gpg-connect-agent updatestartuptty /bye >/dev/null