File: _fsh

package info (click to toggle)
zsh 5.9-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,856 kB
  • sloc: ansic: 108,138; sh: 6,976; makefile: 722; perl: 687; awk: 291; sed: 16
file content (22 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#compdef fsh

local curcontext="$curcontext" state line ret=1
local -a _comp_priv_prefix

_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