mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 18:10:56 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			592 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			592 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #compdef entr
 | |
| 
 | |
| local curcontext="$curcontext" state state_descr line ret=1
 | |
| typeset -A opt_args
 | |
| 
 | |
| _arguments -s -S \
 | |
|   '-c[execute clear before invoking utility]' \
 | |
|   '-d[track directories and exit if a new file is added]' \
 | |
|   '-p[postpone first execution of the utility]' \
 | |
|   '-r[reload a persistent child process]' \
 | |
|   '(*)-s[evaluate the first argument using interpreter specified by $SHELL]' \
 | |
|   '(-): :->command' \
 | |
|   '*::arguments:_normal' && ret=0
 | |
| 
 | |
| if [[ -n $state ]]; then
 | |
|   if (( $+opt_args[-s] )); then
 | |
|     _cmdstring && ret=0
 | |
|   else
 | |
|     _command_names -e && ret=0
 | |
|   fi
 | |
| fi
 | |
| 
 | |
| return ret
 |