mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 18:10:56 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			538 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			538 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #compdef fsh
 | |
| 
 | |
| local curcontext="$curcontext" state line
 | |
| 
 | |
| _arguments -C \
 | |
| 	'(--help)-h[help]' \
 | |
| 	'(-h)--help' \
 | |
| 	'(--version)-V[version]' \
 | |
| 	'(-V)--version' \
 | |
| 	'-r[method]:method:(rsh ssh)' \
 | |
|         '-l[login]:login:_users' \
 | |
| 	'(--timeout)-T:idle timeout:' \
 | |
| 	'(-T)--timeout:idle timeout:' \
 | |
|         ':remote host name:_hosts' \
 | |
|         '(-):command: _command_names -e' \
 | |
|         '*::args:->command' && return 0
 | |
| 
 | |
| case "$state" in
 | |
|       command)
 | |
|         shift 1 words
 | |
|         (( CURRENT-- ))
 | |
|         _normal
 | |
|         return
 | |
|         ;;
 | |
| esac
 |