summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2009-02-05 10:58:06 +0100
committerHugues Hiegel <hugues@hiegel.fr>2009-02-05 10:58:06 +0100
commit5fae30379eb57d0ba0d8acdcd142b031a5a9e1c6 (patch)
treea663deec74e5916c85578abea3349bbc4c0d844e
parentdb63f44fc9989c76aaf6dca72c9c282b3171ebc5 (diff)
[Prompt] Bug when KEYCHAIN was unset
-rw-r--r--12_Prompts.zsh4
1 files changed, 2 insertions, 2 deletions
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" ]