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:
parent
8dbf2a5bfa
commit
708999149b
5 changed files with 26 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue