From d42b58e7a9a2c42cdd267ba875cdfe70904323de Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 25 Oct 2022 13:24:33 -0500 Subject: [PATCH] add 1password ssh agent --- .zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.zshrc b/.zshrc index 59524ce..24181f7 100644 --- a/.zshrc +++ b/.zshrc @@ -39,6 +39,10 @@ fi # export SSH_KEY_PATH="~/.ssh/id_ed25519:~/.ssh/id_ed25519_twc:~/.ssh/id_ed25519_do" +if [ -x "$(command -v 1password)" ]; then + export SSH_AUTH_SOCK="$HOME/.1password/agent.sock" +fi + if [ -f ~/.aliases ]; then source ${HOME}/.aliases fi