summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2009-10-19 10:02:17 +0200
committerHugues Hiegel <hugues@hiegel.fr>2009-10-19 10:02:17 +0200
commitebd48b2b0cc326a55e4ca167c5b6ad4e890c3c02 (patch)
tree854422770c3c88117e6bc4fa290a4567b1cbe07b
parent3735a400b0f469ad8a75c61207b81e4c3de9ee92 (diff)
[Prompt] Tests if keychain files are readable, not if they only exist
-rw-r--r--12_Prompts.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index e350980..f44d124 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -105,8 +105,8 @@ update_prompt()
# GPG/SSH agents
AGENTS=""
- [ -f "${KEYCHAIN}" ] && source ${KEYCHAIN}
- [ -f "${KEYCHAIN}-gpg" ] && source ${KEYCHAIN}-gpg
+ [ -r "${KEYCHAIN}" ] && source ${KEYCHAIN}
+ [ -r "${KEYCHAIN}-gpg" ] && source ${KEYCHAIN}-gpg
# Check ssh-agent only if the env socket has been set and is accessible
if [ -S "$SSH_AUTH_SOCK" ]