summaryrefslogtreecommitdiff
path: root/12_Prompts.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2010-02-26 15:28:29 +0100
committerHugues Hiegel <hugues@hiegel.fr>2010-02-26 15:28:29 +0100
commit2538f05d72fff2084e2c0bf329f159bc382418e0 (patch)
tree4513a5a99c7347482c29a4d57034ba090f2879b3 /12_Prompts.zsh
parentcf7f43b209798153ab176151987c506d1c615472 (diff)
[Prompts] Check for multibyte compliance *outside* ssh-agent...
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r--12_Prompts.zsh18
1 files changed, 9 insertions, 9 deletions
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