{
local pre branch post
local MAXLEN=25
+ local repotype="${1:-$(__vcs_get_repo_type)}"
- case "${1:-$(__vcs_get_repo_type)}" in
+ case "$repotype" in
git)
local reporoot="$(__git_get_repo_root)"
set -- $(__get_prompt_path_components "$reporoot")
pre="${(%)pre}"
;;
*)
+ case "$repotype" in
+ NONE) :;;
+ *) warn "$repotype repositories not (yet) supported in the prompt";;
+ esac
local p="%${MAXLEN}<..<%~%<<"
#TODO find a better way so we don't have to nuke $psvar, but since the
# %(nv.true.false) check for prompts checks element count, not