summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2016-07-07 20:34:42 +0200
committerAlan Pearce2016-07-07 20:34:42 +0200
commita7d0f41f8f9b676b7a9be4fe8cf760db8ed8ad47 (patch)
tree92cc1b859ee634843d4ef0dd94f86d9ccf0faefc
parente27ebd733b0b7b18967beb732734db5d88afdf25 (diff)
downloaddotfiles-a7d0f41f8f9b676b7a9be4fe8cf760db8ed8ad47.tar.lz
dotfiles-a7d0f41f8f9b676b7a9be4fe8cf760db8ed8ad47.tar.zst
dotfiles-a7d0f41f8f9b676b7a9be4fe8cf760db8ed8ad47.zip
zsh: Export SSH_AUTH_SOCK if needed
-rw-r--r--tag-zsh/config/zsh/zshenv7
1 files changed, 6 insertions, 1 deletions
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