1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 17:10:59 +01:00

Frank Terbeck: 26215: VCS_Info disable-patterns style

This commit is contained in:
Peter Stephenson 2009-01-03 18:40:17 +00:00
parent 851663282a
commit 76dc71f882
3 changed files with 24 additions and 1 deletions

View file

@ -41,8 +41,9 @@ vcs_info () {
emulate -L zsh
setopt extendedglob
local pat
local -i found
local -a enabled disabled
local -a enabled disabled dps
local -x usercontext vcs rrn
local -ix maxexports
local -ax msgs
@ -64,6 +65,15 @@ vcs_info () {
zstyle -a ":vcs_info:${vcs}:${usercontext}:${rrn}" "disable" disabled
fi
zstyle -a ":vcs_info:${vcs}:${usercontext}:${rrn}" "disable-patterns" dps
for pat in ${dps} ; do
if [[ ${PWD} == ${~pat} ]] ; then
[[ -n ${vcs_info_msg_0_} ]] && VCS_INFO_set --clear
return 0
fi
done
VCS_INFO_maxexports
(( found = 0 ))