vcs_info: function definition file not found

If you see this error message, you're trying to use the vcs_info function on a zsh which doesn't yet include this function. The "clean" fix for this would be to include your own copy in this case. Not quite as clean is the other way round, just check whether it's there and ignore it if it's not, with the zrcautoload() function taken from grml's zshrc:

--- .zshrc.old	2009-08-26 22:18:39.000000000 +0200
+++ .zshrc	2010-02-07 22:29:42.000000000 +0100
@@ -53,1 +53,23 @@
-autoload -Uz vcs_info
+# this is taken from grml's zshrc
+function zrcautoload() {
+    emulate -L zsh
+    setopt extended_glob
+    local fdir ffile
+    local -i ffound
+
+    ffile=$1
+    (( found = 0 )) 
+    for fdir in ${fpath} ; do 
+        [[ -e ${fdir}/${ffile} ]] && (( ffound = 1 )) 
+    done 
+
+    (( ffound == 0 )) && return 1
+    if [[ $ZSH_VERSION == 3.1.<6-> || $ZSH_VERSION == <4->* ]] ; then 
+        autoload -U ${ffile} || return 1
+    else 
+        autoload ${ffile} || return 1
+    fi
+    return 0
+}
+
+zrcautoload vcs_info || vcs_info() {return 1}