summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2009-01-30 12:09:57 +0100
committerHugues Hiegel <hugues@hiegel.fr>2009-01-30 12:09:57 +0100
commit9751d27c9c35f52f892444b2ff126041e62d6433 (patch)
tree8f5b751606c89372bd3ab853e2f31fd5db4f14bd
parenta1cdd797ca0f79b7641c5478940e3fa7c109e547 (diff)
[KEYCHAIN] source env files to get up-to-date keychain status
-rw-r--r--12_Prompts.zsh7
1 files changed, 7 insertions, 0 deletions
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