Update .bashrc
[dotfiles/.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index b9c99c2044687b9ffb577a9bcefe3a27e06c33fd..f84374fd7919460299ab9d9eeb02b81e026afa80 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -79,7 +79,12 @@ shopt -s checkwinsize
 # vi mode in the shell
 set -o vi
 
+#####adding the agent forwarding stuff
+if [ -z "$SSH_AUTH_SOCK" ] ; then
+    eval `ssh-agent` > /dev/null 2>&1;
+    ssh-add > /dev/null 2>&1;
 
+fi
 
 
 source /usr/share/bash-completion/bash_completion