From 5fae30379eb57d0ba0d8acdcd142b031a5a9e1c6 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Thu, 5 Feb 2009 10:58:06 +0100 Subject: [Prompt] Bug when KEYCHAIN was unset --- 12_Prompts.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '12_Prompts.zsh') diff --git a/12_Prompts.zsh b/12_Prompts.zsh index 9927b88..da36096 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -102,8 +102,8 @@ update_prompt() # GPG/SSH agents AGENTS="" - [ -f ${KEYCHAIN} ] && source ${KEYCHAIN} - [ -f ${KEYCHAIN}-gpg ] && source ${KEYCHAIN}-gpg + [ -f "${KEYCHAIN}" ] && source ${KEYCHAIN} + [ -f "${KEYCHAIN}-gpg" ] && source ${KEYCHAIN}-gpg # Check ssh-agent only if the env socket has been set and is accessible if [ -S "$SSH_AUTH_SOCK" ] -- cgit v1.2.3