about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--Completion/Unix/Command/_mosh12
2 files changed, 18 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fce20a3d9..bd0d71f14 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-06-10  Clint Adams  <clint@zsh.org>
+
+	* 30503: Completion/Unix/Command/_mosh: rudimentary
+	completion for mosh.
+
 2012-06-10  Mikael Magnusson  <mikachu@gmail.com>
 
 	* Jeremy Mates: 30505: Completion/Unix/Command/_wget: Allow
@@ -16350,5 +16355,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5665 $
+* $Revision: 1.5666 $
 *****************************************************
diff --git a/Completion/Unix/Command/_mosh b/Completion/Unix/Command/_mosh
new file mode 100644
index 000000000..c940f9015
--- /dev/null
+++ b/Completion/Unix/Command/_mosh
@@ -0,0 +1,12 @@
+#compdef mosh
+
+_arguments \
+  '--client=:client helper:_command_names -e' \
+  '--server=:server helper:_files' \
+  '--ssh=:ssh command to run:_files' \
+  '(-a -n)--predict=:when:(adaptive always never)' \
+  '(--predict -n)-a[predict always]' \
+  '(--predict -a)-n[predict never]' \
+  {-p,--port=}':port:_ports' \
+  ':remote:_hosts' \
+  ':remote command:_command_names -e'