1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

25710: various minor consistency tweaks for VCS_Info

This commit is contained in:
Peter Stephenson 2008-09-22 16:56:32 +00:00
parent 8dbf2a5bfa
commit 708999149b
5 changed files with 26 additions and 4 deletions

View file

@ -37,7 +37,9 @@ vcs_info_setsys
# and now, finally create the real vcs_info function
vcs_info () {
setopt localoptions noksharrays extendedglob
emulate -L zsh
setopt extendedglob
local -i found
local -a enabled disabled
local -x usercontext vcs rrn

View file

@ -2,7 +2,8 @@
## Written by Frank Terbeck <ft@bewatermyfriend.org>
## Distributed under the same BSD-ish license as zsh itself.
setopt localoptions NO_shwordsplit
emulate -L zsh
local -i i
local -ix maxexports

View file

@ -2,13 +2,21 @@
## Written by Frank Terbeck <ft@bewatermyfriend.org>
## Distributed under the same BSD-ish license as zsh itself.
setopt localoptions noksharrays extendedglob NO_shwordsplit
emulate -L zsh
setopt extendedglob
local sys
local -a disabled enabled
local -Ax vcs_comm
zstyle -a ":vcs_info:-init-:${1:-default}:-all-" "enable" enabled
(( ${#enabled} == 0 )) && enabled=( all )
if (( ${+VCS_INFO_backends} == 0 )); then
autoload -Uz vcs_info_setsys
vcs_info_setsys
fi
if [[ -n ${(M)enabled:#(#i)all} ]] ; then
enabled=( ${VCS_INFO_backends} )
zstyle -a ":vcs_info:-init-:${1:-default}:-all-" "disable" disabled

View file

@ -2,7 +2,9 @@
## Written by Frank Terbeck <ft@bewatermyfriend.org>
## Distributed under the same BSD-ish license as zsh itself.
setopt localoptions noksharrays extendedglob typeset_silent NO_shwordsplit
emulate -L zsh
setopt extendedglob typeset_silent
local sys
typeset -g VCS_INFO_backends