Auto-start ssh-agent and add keys
This commit is contained in:
parent
a42980c6ab
commit
b97abccae6
1 changed files with 7 additions and 0 deletions
7
zshrc
7
zshrc
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue