From a7d0f41f8f9b676b7a9be4fe8cf760db8ed8ad47 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 7 Jul 2016 20:34:42 +0200 Subject: zsh: Export SSH_AUTH_SOCK if needed --- tag-zsh/config/zsh/zshenv | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tag-zsh/config/zsh/zshenv b/tag-zsh/config/zsh/zshenv index d5ef76a..3e8d1da 100644 --- a/tag-zsh/config/zsh/zshenv +++ b/tag-zsh/config/zsh/zshenv @@ -3,4 +3,9 @@ then . $ZDOTDIR/zshenv.local fi -ZPLUG_HOME=${ZPLUG_HOME:-~/projects/zplug} \ No newline at end of file +ZPLUG_HOME=${ZPLUG_HOME:-~/projects/zplug} + +if [[ -z $SSH_AUTH_SOCK ]] +then + export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket +fi -- cgit 1.4.1