From 9751d27c9c35f52f892444b2ff126041e62d6433 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 30 Jan 2009 12:09:57 +0100 Subject: [KEYCHAIN] source env files to get up-to-date keychain status --- 12_Prompts.zsh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/12_Prompts.zsh b/12_Prompts.zsh index 123211a..23d76b8 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -94,6 +94,13 @@ update_prompt() set_prompt_date # GPG/SSH agents + + KEYCHAIN=~/.keychain/$(hostname)-sh + for file in $(find $KEYCHAIN:h -name "$(hostname)-sh" -o -name "$(hostname)-sh-*") + do + source $file + done + AGENTS="" if [ "$SSH_AGENT_PID" -gt 0 -a -e /proc/$SSH_AGENT_PID/cmdline ] then -- cgit v1.2.3