modified precmd for vcs