zsh: Export SSH_AUTH_SOCK if needed
Alan Pearce alan@alanpearce.uk
Thu, 07 Jul 2016 20:34:42 +0200
1 files changed, 6 insertions(+), 1 deletions(-)
jump to
M tag-zsh/config/zsh/zshenv → tag-zsh/config/zsh/zshenv
@@ -3,4 +3,9 @@ then . $ZDOTDIR/zshenv.local fi -ZPLUG_HOME=${ZPLUG_HOME:-~/projects/zplug}+ZPLUG_HOME=${ZPLUG_HOME:-~/projects/zplug} + +if [[ -z $SSH_AUTH_SOCK ]] +then + export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket +fi