summaryrefslogtreecommitdiff
path: root/12_Prompts.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2010-08-18 11:51:23 +0200
committerHugues Hiegel <hugues@hiegel.fr>2010-08-18 11:51:23 +0200
commit7be17c8f8ba740dd802751d84c00caa979ffb4b7 (patch)
tree1aa6354a69e1f8e4813ad98777a5df126cd94453 /12_Prompts.zsh
parent71b48be99cecc1fb3fda98d245ab74966bdd6ea6 (diff)
[Prompts] debug++
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r--12_Prompts.zsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index 3639bb6..0462fac 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -120,6 +120,7 @@ update_prompt_elements()
_is_multibyte_compliant=""
fi
+ [ "$DEBUG" = "yes" ] && echo && echo -n " ......SSH"
# Check ssh-agent only if the env socket has been set and is accessible
if [ -S "$SSH_AUTH_SOCK" ]
then
@@ -152,6 +153,7 @@ update_prompt_elements()
AGENTS=$C_$agent_colors[$AGENTCOLOR]$_C"$AGENTCHAR"
fi
+ [ "$DEBUG" = "yes" ] && echo && echo -n " ......GPG"
GPG_AGENT_PID="$(echo $GPG_AGENT_INFO | cut -d: -f2)"
if [ "$GPG_AGENT_PID" != "" -a -e /proc/$GPG_AGENT_PID/cmdline ]
then