about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/.distfiles1
-rw-r--r--Completion/Unix/Command/_fsh23
2 files changed, 24 insertions, 0 deletions
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