Advanced Bash Completion
|Reported by:||Arthur Koziel||Owned by:||Arthur Koziel|
|Component:||Core (Management commands)||Version:||master|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||no||Patch needs improvement:||no|
This patch improves the bash completion. It calls a python function which uses the
get_commands() method to return subcommand suggestions. It also goes through the optparse parser to get option suggestions for a subcommand. There are special cases, like the 'runfcgi' command which uses a python dict to store its options.
This makes it possible to have subcommand completion of 3rd party apps (like django-command-extension).
It's a little hard to explain, so I tried to make a screencast:
Installation hasn't changed, just source the django_bash_completion file from extras/
Change History (14)
comment:1 Changed 8 years ago by
|Component:||Uncategorized → django-admin.py|
|milestone:||1.2 → 1.1|
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|