From 7a79a916978a35cd5dcaef14573e3bbb4cea76e2 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 30 Jan 2009 14:51:14 +0100 Subject: [PROMPT] removes the separator between ssh and gpg agents indicators --- 12_Prompts.zsh | 5 +++-- 1 file 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 -- cgit v1.2.3