about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2012-06-10 03:35:51 +0000
committerClint Adams <clint@users.sourceforge.net>2012-06-10 03:35:51 +0000
commitf9257b66c87830fbdc271a09f1ccb3f5f01c7927 (patch)
tree257d5170fcd7fd5bfa6e783588fddbf617a17e53
parent02a3fc7271f225faceded48cc404fe1016d74c0f (diff)
downloadzsh-f9257b66c87830fbdc271a09f1ccb3f5f01c7927.tar.gz
zsh-f9257b66c87830fbdc271a09f1ccb3f5f01c7927.tar.xz
zsh-f9257b66c87830fbdc271a09f1ccb3f5f01c7927.zip
30503: rudimentary completion for mosh.
-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'