File: _fsh

package info (click to toggle)
zsh-beta 4.1.0-dev-4-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 10,064 kB
  • ctags: 6,159
  • sloc: ansic: 73,617; sh: 4,600; makefile: 630; perl: 623; awk: 293; sed: 16
file content (25 lines) | stat: -rw-r--r-- 538 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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