Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#562753: Improvements to Django completion script
- X-seq: zsh-workers 27545
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Chris Lamb <lamby@xxxxxxxxxx>, 562753@xxxxxxxxxxxxxxx
- Subject: Re: Bug#562753: Improvements to Django completion script
- Date: Mon, 28 Dec 2009 02:57:11 +0000
- Cc: zsh-workers@xxxxxxx
- In-reply-to: <20091227182337.411153e7@xxxxxxxxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20091227182337.411153e7@xxxxxxxxxxxxxxxxxxxxxxxxx>
On Sun, Dec 27, 2009 at 06:23:37PM +0000, Chris Lamb wrote:
> The attached patch improves the Django completion in two ways:
>
> * Enables the "runserver" options when used with "runserver_plus" (a
> popular add-on) where available.
>
> * Defaults to _files-like expansion on unrecognised subcommands.
Thanks, I'll commit this to CVS later this week if no one else gets to it.
--- _django 2009-12-27 18:18:08.000000000 +0000
+++ _django 2009-12-27 18:20:01.000000000 +0000
@@ -154,7 +154,7 @@
)
;;
- runserver)
+ runserver|runserver_plus)
args+=(
'--noreload[do not use auto-reloader]'
'--adminmedia=[directory from which to serve admin media]:directory:_directories'
@@ -199,6 +199,10 @@
validate|runfcgi)
;;
+
+ *)
+ _files
+ ;;
esac
_arguments $args && ret=0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author