all repos — nixfiles @ a7d0f41f8f9b676b7a9be4fe8cf760db8ed8ad47

System and user configuration, managed by nix and home-manager

zsh: Export SSH_AUTH_SOCK if needed
Alan Pearce alan@alanpearce.uk
Thu, 07 Jul 2016 20:34:42 +0200
commit

a7d0f41f8f9b676b7a9be4fe8cf760db8ed8ad47

parent

e27ebd733b0b7b18967beb732734db5d88afdf25

1 files changed, 6 insertions(+), 1 deletions(-)

jump to
M tag-zsh/config/zsh/zshenvtag-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