about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/.distfiles1
-rw-r--r--Completion/Unix/Command/_fsh23
3 files changed, 29 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f33d1bf55..1ca232d4d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-26  Clint Adams  <clint@zsh.org>
+
+	* 16375: Completion/Unix/Command/.distfiles,
+	Completion/Unix/Command/_fsh: command completion for fsh.
+
 2001-12-21  Oliver Kiddle  <opk@zsh.org>
 
 	* 16372: Src/jobs.c, Completion/Unix/Type/_signals: allow signals
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