diff --git a/django_typer/scripts/bash.tmpl b/django_typer/scripts/bash.tmpl index 02ad3da5..db81c75d 100644 --- a/django_typer/scripts/bash.tmpl +++ b/django_typer/scripts/bash.tmpl @@ -1,9 +1,31 @@ %(complete_func)s() { local IFS=$' ' + # Extract --settings and --pythonpath options and their values if present becase + # we need to pass these to the complete script - they may be necessary to find the command! + local settings_option="" + local pythonpath_option="" + + for ((i=0; i