summaryrefslogtreecommitdiff
path: root/zshfunc/vcs-info/VCS_INFO_nvcsformats
blob: eed0e3249ca63ced60a89cf5311f9411b72dc930 (plain)
1
2
3
4
5
6
7
8
9
10
11
VCS_INFO_nvcsformats () { #{{{
    setopt localoptions noksharrays
    local c v

    if [[ $1 == 'preinit' ]] ; then
        c=default
        v=preinit
    fi
    zstyle -a ":vcs_info:${v:-$vcs}:${c:-$usercontext}" nvcsformats msgs
    (( ${#msgs} > maxexports )) && msgs[${maxexports},-1]=()
}