Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SSH agent auto-add of my keys.

  • Loading branch information...
commit 235dd8cc6e040a2abe94c3f60462ba57a711078a 1 parent 85aa0e2
Brett Buddin authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 zshenv
View
8 zshenv
@@ -1,3 +1,11 @@
export ZSH=$HOME/.zsh
export PATH=~/.bin:/usr/local/sbin:/usr/local/Cellar/php/5.3.6/bin:/usr/local/share/python:$PATH
export EDITOR=vim
+
+if [ -f $HOME/.sshkeys ]; then
+ (ssh-add -l 2>&1) > /dev/null
+
+ if [ $? = "1" ]; then
+ cat $HOME/.sshkeys | xargs ssh-add 2> /dev/null
+ fi
+fi
Please sign in to comment.
Something went wrong with that request. Please try again.