From d87603d5cd31f89423b7d2be4810c6fc0d67076a Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud <julien.nicoulaud@gmail.com> Date: Fri, 22 Jul 2011 00:37:29 +0200 Subject: [PATCH] #27: Add thor completion --- _thor | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 _thor diff --git a/_thor b/_thor new file mode 100644 index 0000000..7a07732 --- /dev/null +++ b/_thor @@ -0,0 +1,23 @@ +#compdef thor +# ------------------------------------------------------------------------------ +# Description +# ----------- +# +# Completion script for thor (https://github.com/wycats/thor). +# +# Source: https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/thor +# +# ------------------------------------------------------------------------------ +# Authors +# ------- +# +# * Andrew Hodges (https://github.com/betawaffle) +# +# ------------------------------------------------------------------------------ +# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*- +# vim: ft=zsh sw=2 ts=2 et +# ------------------------------------------------------------------------------ + + +# FIXME This should be rewritten using up-to-date ZSH completion API. +compadd `thor list | grep thor | cut -d " " -f 2`