Auto-start ssh-agent and add keys

This commit is contained in:
Jonny Barnes 2016-09-27 20:47:59 +01:00
parent a42980c6ab
commit b97abccae6

7
zshrc
View file

@ -151,6 +151,13 @@ export PATH="$PATH:/usr/local/opt/go/libexec/bin:$GOPATH/bin"
GPG_TTY=`tty`
export GPG_TTY
# SSH
if test -z "$SSH_AUTH_SOCK"; then
eval `ssh-agent -s`
ssh-add ~/.ssh/id_jmb
ssh-add ~/.ssh/id_github
fi
# composer global
test "$platform" = 'linux' && export PATH="$PATH:/home/jonny/.composer/vendor/bin"
test "$platform" = 'osx' && export PATH="$PATH:/Users/jonny/.composer/vendor/bin"