diff options
author | Julian Teu <julianteule@gmail.com> | 2018-04-16 22:23:40 +0200 |
---|---|---|
committer | Julian Teu <julianteule@gmail.com> | 2018-04-16 22:23:40 +0200 |
commit | 4d10ede29de500a4e9e940052268b8263ffb7bd8 (patch) | |
tree | 3f8265bc543beb9328b348d97e4b05858850ed49 /.zshrc | |
parent | 48752256339630c65fa7535690eb6cc2e45b59ba (diff) |
Added vimGit and ssh-agent
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |