From a5b8979631889699f98bab0487d351577d6a7e0f Mon Sep 17 00:00:00 2001 From: Ben O'Hara Date: Wed, 11 Jul 2012 15:11:53 +1000 Subject: [PATCH] mosh --- _mosh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 _mosh diff --git a/_mosh b/_mosh new file mode 100644 index 0000000..c617f55 --- /dev/null +++ b/_mosh @@ -0,0 +1,30 @@ +#compdef mosh +# ------------------------------------------------------------------------------ +# Description +# ----------- +# +# Completion script for mosh (http://mosh.mit.edu). +# +# Source: https://gist.github.com/2242920 +# +# ------------------------------------------------------------------------------ +# Authors +# ------- +# +# * Ben O'Hara (https://github.com/benohara) +# +# ------------------------------------------------------------------------------ +# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*- +# vim: ft=zsh sw=2 ts=2 et +# ------------------------------------------------------------------------------ + +_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'