diff options
-rw-r--r-- | .vimrc | 1 | ||||
-rw-r--r-- | .zshrc | 9 |
2 files changed, 10 insertions, 0 deletions
@@ -14,6 +14,7 @@ Plugin 'VundleVim/Vundle.vim' Plugin 'tpope/vim-surround' Plugin 'tpope/vim-repeat' Plugin 'tpope/vim-speeddating' +Plugin 'tpope/vim-fugitive' Plugin 'vim-latex/vim-latex' Plugin 'vim-scripts/ReplaceWithRegister' @@ -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 |