about summary refs log tree commit diff
path: root/Completion/Unix/Command/_fsh
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-12-26 03:46:13 +0000
committerClint Adams <clint@users.sourceforge.net>2001-12-26 03:46:13 +0000
commitbc10b0e0a52883d06195d99553e95b484111c3a0 (patch)
treeca0b9d171517ee88485205398354ccfaa642dc8f /Completion/Unix/Command/_fsh
parent1b608e1b9af7a86c7c26c5f8aea27602af3077ea (diff)
downloadzsh-bc10b0e0a52883d06195d99553e95b484111c3a0.tar.gz
zsh-bc10b0e0a52883d06195d99553e95b484111c3a0.tar.xz
zsh-bc10b0e0a52883d06195d99553e95b484111c3a0.zip
16375: command completion for fsh
Diffstat (limited to 'Completion/Unix/Command/_fsh')
-rw-r--r--Completion/Unix/Command/_fsh23
1 files changed, 23 insertions, 0 deletions
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