diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2001-04-13 18:42:13 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2001-04-13 18:42:13 +0000 |
commit | d7417bdc0e500fff5f6890c3ee1f70dff54c3f18 (patch) | |
tree | e6ac600aaa0d17e38a2515ee474bb4f92541a94d /Completion/Unix/Command/_elm | |
parent | 25b8a1a4b1fe09ab4ee0a12ff94d4162352ef9e1 (diff) | |
download | zsh-d7417bdc0e500fff5f6890c3ee1f70dff54c3f18.tar.gz zsh-d7417bdc0e500fff5f6890c3ee1f70dff54c3f18.tar.xz zsh-d7417bdc0e500fff5f6890c3ee1f70dff54c3f18.zip |
add completion for common MUAs and a couple of minor fixes (13982)
Diffstat (limited to 'Completion/Unix/Command/_elm')
-rw-r--r-- | Completion/Unix/Command/_elm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_elm b/Completion/Unix/Command/_elm new file mode 100644 index 000000000..34a30649c --- /dev/null +++ b/Completion/Unix/Command/_elm @@ -0,0 +1,33 @@ +#compdef elm + +local curcontext="$curcontext" state line expl suf + +_arguments -C -s \ + '::recipient:->userhost' \ + '-a[use the arrow pointer regardless]' \ + '-A+[attach file]:file attachment:_files' \ + '-c[check the given aliases only]:*:alias' \ + '-d+[set debug level]:debug level' \ + '-f+[specify mailbox to load]:mailbox: _mailboxes' \ + '-h[display help]' \ + '-i+[specify file to include in message]:include file:_files' \ + '-m[turn off menu, using more of the screen]' \ + '-s+[specify a subject]:subject:' \ + "-t[don't use termcap/terminfo ti/te entries]" \ + '-V[enable sendmail voyeur mode]' \ + '-v[display elm version]' \ + '-w[write .elm/elmrc]' \ + '-z[start only if new messages]' && return 0 + +if [[ "$state" = userhost ]]; then + if compset -P '*@'; then + _description hosts expl 'remote host name' + _hosts "$expl[@]" && return 0 + else + compset -S '@*' || suf='@' + _description users expl 'login name' + _users "$expl[@]" -q -S "$suf" && return 0 + fi +fi + +return 1 |