From 4d10ede29de500a4e9e940052268b8263ffb7bd8 Mon Sep 17 00:00:00 2001 From: Julian Teu Date: Mon, 16 Apr 2018 22:23:40 +0200 Subject: Added vimGit and ssh-agent --- .zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index 2a608c0..200fef5 100644 --- a/.zshrc +++ b/.zshrc @@ -129,3 +129,12 @@ alias hej="echo 'Hej, hvordan går det?'" export EDITOR=nvim echo "Done" clear + +#Setup ssh agent +if [[ $(ps -aux | grep ssh-agent | grep -v "grep" | wc -l) == "0" ]]; then + echo "ssh-agent not found" + ssh-agent > ~/.ssh-agent-thing +fi +if [[ "$SSH_AGENT_PID" == "" ]]; then + eval "$(<~/.ssh-agent-thing)" +fi -- cgit v1.2.3