mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 18:10:56 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			570 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			570 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| ## vim:ft=zsh
 | |
| ## Written by Frank Terbeck <ft@bewatermyfriend.org>
 | |
| ## Distributed under the same BSD-ish license as zsh itself.
 | |
| 
 | |
| emulate -L zsh
 | |
| setopt extendedglob typeset_silent
 | |
| 
 | |
| local sys
 | |
| typeset -g VCS_INFO_backends
 | |
| 
 | |
| VCS_INFO_backends=()
 | |
| 
 | |
| for file in ${^fpath}/VCS_INFO_get_data_*~*(\~|.zwc)(N) ; do
 | |
|     file=${file:t}
 | |
|     : ${file:#(#b)VCS_INFO_get_data_(*)}
 | |
|     sys=${match[1]}
 | |
| 
 | |
|     [[ -n ${(M)VCS_INFO_backends:#${sys}} ]] && continue
 | |
|     VCS_INFO_backends+=(${sys})
 | |
|     autoload -Uz VCS_INFO_detect_${sys}
 | |
|     autoload -Uz VCS_INFO_get_data_${sys}
 | |
| done
 | |
| 
 | |
| return 0
 |