summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2009-01-30 14:51:14 +0100
committerHugues Hiegel <hugues@hiegel.fr>2009-01-30 14:51:14 +0100
commit7a79a916978a35cd5dcaef14573e3bbb4cea76e2 (patch)
treea2a042da07d38da2c332cbd3e6d9fae473788665
parent9751d27c9c35f52f892444b2ff126041e62d6433 (diff)
[PROMPT] removes the separator between ssh and gpg agents indicators
-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