Tab completion when executing as `./manage.py`
Considering that the `manage.py` file has its executable bit set users will be able to execute the script from the project root directory and they will need to prepend `./` to the script name.
This commit is contained in:
parent
518ce7a51f
commit
867b96778a
|
@ -36,7 +36,7 @@ _django_completion()
|
|||
COMP_CWORD=$COMP_CWORD \
|
||||
DJANGO_AUTO_COMPLETE=1 $1 ) )
|
||||
}
|
||||
complete -F _django_completion -o default manage.py django-admin
|
||||
complete -F _django_completion -o default ./manage.py manage.py django-admin
|
||||
|
||||
_python_django_completion()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue