## vim:ft=zsh ## cvs support by: Frank Terbeck ## Distributed under the same BSD-ish license as zsh itself. setopt localoptions NO_shwordsplit local cvsbranch cvsbase cvsbase=${vcs_comm[basedir]} cvsbranch=$(< ./CVS/Repository) rrn=${cvsbase:t} cvsbranch=${cvsbranch##${rrn}/} [[ -z ${cvsbranch} ]] && cvsbranch=${rrn} VCS_INFO_formats '' "${cvsbranch}" "${cvsbase}" '' '' '' '' return 0