Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ignore keychain if not available

  • Loading branch information...
commit 59522b19ae07b5947816990d2ebe8269070fedba 1 parent 4a1d63c
James Cleveland authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  .zshrc
View
2  .zshrc
@@ -262,7 +262,7 @@ export WORKON_HOME=~/.virtualenvs
alias mkvirtualenv='mkvirtualenv -p python2.7'
unlock() {
- eval $(keychain --eval --agents gpg,ssh --nogui -Q -q ~/.ssh/id_rsa)
+ [[ -x $(which keychain) ]] && eval $(keychain --eval --agents gpg,ssh --nogui -Q -q ~/.ssh/id_rsa)
}
alias 'u=unlock'
unlock
Please sign in to comment.
Something went wrong with that request. Please try again.