Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#562753: Improvements to Django completion script



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