1## vim:ft=zsh
2## Written by Frank Terbeck <ft@bewatermyfriend.org>
3## Distributed under the same BSD-ish license as zsh itself.
4
5emulate -L zsh
6
7local -i i
8local -ix maxexports
9
10VCS_INFO_maxexports
11for i in {0..$((maxexports - 1))} ; do
12    printf -- '$vcs_info_msg_%d_: "' $i
13    if zstyle -T ':vcs_info:formats:command:-all-' use-prompt-escapes ; then
14        print -nP -- ${(P)${:-vcs_info_msg_${i}_}}
15    else
16        print -n -- ${(P)${:-vcs_info_msg_${i}_}}
17    fi
18    printf '"\n'
19done
20