mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 06:00:54 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			444 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			444 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #compdef look
 | |
| 
 | |
| local curcontext="$curcontext" state line expl ret=1
 | |
| typeset -A opt_args
 | |
| 
 | |
| _arguments -C -s \
 | |
|   '-t+[termination character]:termination character:' \
 | |
|   '-f[case insensitive]' \
 | |
|   '-d[dictionary order]' \
 | |
|   ':string:->string' \
 | |
|   ':dictionary file:_files' && ret=0
 | |
| 
 | |
| [[ -n "$state" && ! -prefix - ]] && _wanted values expl 'word prefix' \
 | |
|     compadd - $(_call_program words $words[1] '"$PREFIX"' 2>/dev/null) && return
 | |
| 
 | |
| return ret
 |