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:
Yanky Hoffman 2021-08-20 13:58:43 -04:00 committed by GitHub
parent 518ce7a51f
commit 867b96778a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()
{