diff options
author | Alan Pearce | 2016-07-07 20:34:42 +0200 |
---|---|---|
committer | Alan Pearce | 2016-07-07 20:34:42 +0200 |
commit | a7d0f41f8f9b676b7a9be4fe8cf760db8ed8ad47 (patch) | |
tree | 92cc1b859ee634843d4ef0dd94f86d9ccf0faefc /tag-zsh/config | |
parent | e27ebd733b0b7b18967beb732734db5d88afdf25 (diff) | |
download | dotfiles-a7d0f41f8f9b676b7a9be4fe8cf760db8ed8ad47.tar.lz dotfiles-a7d0f41f8f9b676b7a9be4fe8cf760db8ed8ad47.tar.zst dotfiles-a7d0f41f8f9b676b7a9be4fe8cf760db8ed8ad47.zip |
zsh: Export SSH_AUTH_SOCK if needed
Diffstat (limited to 'tag-zsh/config')
-rw-r--r-- | tag-zsh/config/zsh/zshenv | 7 |
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 |