summaryrefslogtreecommitdiff
path: root/zshfunc/vcs-info/VCS_INFO_nvcsformats
diff options
context:
space:
mode:
Diffstat (limited to 'zshfunc/vcs-info/VCS_INFO_nvcsformats')
-rw-r--r--zshfunc/vcs-info/VCS_INFO_nvcsformats11
1 files changed, 11 insertions, 0 deletions
diff --git a/zshfunc/vcs-info/VCS_INFO_nvcsformats b/zshfunc/vcs-info/VCS_INFO_nvcsformats
new file mode 100644
index 0000000..eed0e32
--- /dev/null
+++ b/zshfunc/vcs-info/VCS_INFO_nvcsformats
@@ -0,0 +1,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]=()
+}