From f26d5c186ddce49764fa96e02803e0612cccf6ec Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 3 Jul 2013 15:24:24 +0200 Subject: [PATCH] Start keychain if it exists --- home/.zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/.zshrc b/home/.zshrc index 5280d63..e39545b 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -47,3 +47,8 @@ source $ZSH/oh-my-zsh.sh # Customize to your needs... export PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/Cellar/php/5.3.8/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/l0rd/packer alias homeshick="$HOME/.homesick/repos/homeshick/home/.homeshick" + +if [ -f "~/.keychain/$HOST-sh" ]; then + keychain ~/.ssh/id_rsa + . ~/.keychain/$HOST-sh +fi