mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 06:00:54 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			845 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			845 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #compdef -default-
 | |
| 
 | |
| # We first try the `compctl's. This is without first (-T) and default (-D)
 | |
| # completion. If you want them add `-T' and/or `-D' to this command.
 | |
| # If there is a `compctl' for the command we are working on, we return
 | |
| # immediatly. If you want to use new style completion anyway, remove the
 | |
| # `|| return'. Also, you may want to use new style completion if the 
 | |
| # `compctl' didn't produce any matches. In that case remove the `|| return'
 | |
| # and insert the line `[[ compstate[nmatches] -eq 0 ]] || return' after
 | |
| # `compcall'.
 | |
| 
 | |
| compcall || return 0
 | |
| 
 | |
| _files && return
 | |
| 
 | |
| # magicequalsubst allows arguments like <any-old-stuff>=~/foo to do
 | |
| # file name expansion after the =.  In that case, it's natural to
 | |
| # allow completion to handle file names after any equals sign.
 | |
| if [[ -o magicequalsubst ]] && compset -P 1 '*='; then
 | |
|   _files
 | |
| fi
 |