summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Teu <julianteule@gmail.com>2018-04-16 22:23:40 +0200
committerJulian Teu <julianteule@gmail.com>2018-04-16 22:23:40 +0200
commit4d10ede29de500a4e9e940052268b8263ffb7bd8 (patch)
tree3f8265bc543beb9328b348d97e4b05858850ed49
parent48752256339630c65fa7535690eb6cc2e45b59ba (diff)
Added vimGit and ssh-agent
-rw-r--r--.vimrc1
-rw-r--r--.zshrc9
2 files changed, 10 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index fb8672e..8ba9f47 100644
--- a/.vimrc
+++ b/.vimrc
@@ -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'
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