From bc10b0e0a52883d06195d99553e95b484111c3a0 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Wed, 26 Dec 2001 03:46:13 +0000 Subject: 16375: command completion for fsh --- Completion/Unix/Command/.distfiles | 1 + Completion/Unix/Command/_fsh | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 Completion/Unix/Command/_fsh (limited to 'Completion/Unix/Command') diff --git a/Completion/Unix/Command/.distfiles b/Completion/Unix/Command/.distfiles index 53e22b502..d15575b72 100644 --- a/Completion/Unix/Command/.distfiles +++ b/Completion/Unix/Command/.distfiles @@ -16,4 +16,5 @@ _dict _grep _lzop _prcs _tiff _elm _diff _gs _make _psutils _tin _apm _mail _last _loadkeys _modutils _ruby _sysctl _links _samba _user_admin _rsync _arping _spamassassin _mtools _ifconfig +_fsh ' diff --git a/Completion/Unix/Command/_fsh b/Completion/Unix/Command/_fsh new file mode 100644 index 000000000..a7cc22e6a --- /dev/null +++ b/Completion/Unix/Command/_fsh @@ -0,0 +1,23 @@ +#compdef fsh + +_arguments \ + '(--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 -- cgit 1.4.1