From a58e033e366f7a5776e6d53ac45b44a426aadbd2 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 19 Jul 2016 12:47:01 +0200 Subject: zsh: Setup SSH auth sock if empty --- tag-zsh/config/zsh/zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc index 3e568cd4..7fcacd3a 100644 --- a/tag-zsh/config/zsh/zshrc +++ b/tag-zsh/config/zsh/zshrc @@ -96,6 +96,11 @@ bindkey '\e ' hist-complete zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' '+m:{A-Z}={a-z}' zstyle ':completion:*' completer _expand _complete _match +if [[ -z $SSH_AUTH_SOCK && $commands[ssh-agent] ]] +then + eval $(ssh-agent) +fi + if zplug check Tarrasch/zsh-autoenv then AUTOENV_FILE_ENTER=.envrc -- cgit 1.4.1