From dc4a2be3b9d4c26cbde040e67f00c36300ced04f Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Tue, 23 Jan 2018 20:12:11 +0100 Subject: [PATCH] First try at adding back ssh-agent autostart --- .bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bashrc b/.bashrc index 48ed5c6..f1f124e 100644 --- a/.bashrc +++ b/.bashrc @@ -264,6 +264,10 @@ cod() { # colordiff replacement with git cat $file2 | git diff --no-prefix $gitarg --no-index "$file1" - } +if [ -z "$SSH_AUTH_SOCK" ]; then + eval `ssh-agent -s` +fi + if [ -r ~/.bashrc_local ]; then . ~/.bashrc_local fi