VCS_INFO_reposub () { #{{{ setopt localoptions extendedglob local base=${1%%/##} [[ ${PWD} == ${base}/* ]] || { printf '.' return 1 } printf '%s' ${PWD#$base/} return 0 }