mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
22 lines
519 B
Plaintext
22 lines
519 B
Plaintext
#compdef fsh
|
|
|
|
local curcontext="$curcontext" state line ret=1
|
|
|
|
_arguments -C \
|
|
'(- : *)'{-h,--help}'[display help information]' \
|
|
'(- : *)'{-V,--version}'[display version information]' \
|
|
'-r[specify method]:method:(rsh ssh)' \
|
|
'-l[specify login id]:login:_users' \
|
|
'(-T --timeout)'{-T,--timeout}':idle timeout:' \
|
|
':remote host name:_hosts' \
|
|
'(-):command: _command_names -e' \
|
|
'*::args:->command' && ret=0
|
|
|
|
if [[ -n "$state" ]]; then
|
|
shift 1 words
|
|
(( CURRENT-- ))
|
|
_normal && ret=0
|
|
fi
|
|
|
|
return ret
|