From 2538f05d72fff2084e2c0bf329f159bc382418e0 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 26 Feb 2010 15:28:29 +0100 Subject: [Prompts] Check for multibyte compliance *outside* ssh-agent... --- 12_Prompts.zsh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to '12_Prompts.zsh') diff --git a/12_Prompts.zsh b/12_Prompts.zsh index b58c20a..4602fc9 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -111,20 +111,20 @@ update_prompt() [ -r "${KEYCHAIN}" ] && source ${KEYCHAIN} [ -r "${KEYCHAIN}-gpg" ] && source ${KEYCHAIN}-gpg + + local _is_multibyte_compliant + if ( echo ${(k)options} | grep "multibyte" >/dev/null ) && [ "$options[multibyte]" = "on" ] + then + _is_multibyte_compliant="yes it is !" + else + _is_multibyte_compliant="" + fi + # Check ssh-agent only if the env socket has been set and is accessible if [ -S "$SSH_AUTH_SOCK" ] then # Get keylist SSH_AGENT_KEYLIST="$( ssh-add -l | grep "^[[:digit:]]\+ \([[:digit:]a-f]\{2\}:\)\{15\}[[:digit:]a-f]\{2\} .* (.*)$" )" - - local _is_multibyte_compliant - if ( echo ${(k)options} | grep "multibyte" >/dev/null ) && [ "$options[multibyte]" = "on" ] - then - _is_multibyte_compliant="yes it is !" - else - _is_multibyte_compliant="" - fi - # Check if it is a forwarded agent if [ "$SSH_AGENT_PID" -gt 0 -a -e /proc/$SSH_AGENT_PID/cmdline ] then -- cgit v1.2.3