summaryrefslogtreecommitdiff
path: root/12_Prompts.zsh
diff options
context:
space:
mode:
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r--12_Prompts.zsh5
1 files changed, 3 insertions, 2 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index 23d76b8..3048c0c 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -105,7 +105,7 @@ update_prompt()
if [ "$SSH_AGENT_PID" -gt 0 -a -e /proc/$SSH_AGENT_PID/cmdline ]
then
[ "`strings /proc/$SSH_AGENT_PID/cmdline | head -n1`" = "ssh-agent" ] && \
- AGENTS=$SEPARATOR$C_$prompt_colors[agents]$_C"★"
+ AGENTS=$C_$prompt_colors[agents]$_C"★"
fi
if [ "$GPG_AGENT_INFO" != "" ]
then
@@ -113,9 +113,10 @@ update_prompt()
if [ -e /proc/$GPG_AGENT_PID/cmdline ]
then
[ "`strings /proc/$GPG_AGENT_PID/cmdline | head -n1`" = "gpg-agent" ] && \
- AGENTS=$AGENTS$SEPARATOR$C_$prompt_colors[agents]$_C"☆"
+ AGENTS=$AGENTS$C_$prompt_colors[agents]$_C"☆"
fi
fi
+ AGENTS=${AGENTS:+$SEPARATOR$AGENTS}
AGENTSSIZE=$(expand_text $AGENTS)
AGENTSSIZE=$#AGENTSSIZE