Ticket #18903: patch-extras-django_bash_completion.3.diff
File patch-extras-django_bash_completion.3.diff, 1.1 KB (added by arthur@…, 16 years ago) |
---|
-
extras/django_bash_completion
old new 55 55 56 56 if [[ # django-admin.py, django-admin, ./manage, manage.py 57 57 ( ${COMP_CWORD} -eq 1 && 58 ( ${COMP_WORDS[0]} == django-admin .py ||58 ( ${COMP_WORDS[0]} == django-admin-?([2-9]\.[0-9]).py || 59 59 ${COMP_WORDS[0]} == django-admin || 60 60 ${COMP_WORDS[0]} == ./manage.py || 61 61 ${COMP_WORDS[0]} == manage.py ) ) … … 68 68 || 69 69 ( ${COMP_CWORD} -eq 2 && 70 70 ( $( basename -- ${COMP_WORDS[0]} ) == python?([1-9]\.[0-9]) ) && 71 ( $( basename -- ${COMP_WORDS[1]} ) == django-admin .py) &&71 ( $( basename -- ${COMP_WORDS[1]} ) == django-admin-?(2-9]\.[0-9]).py) && 72 72 ( -r ${COMP_WORDS[1]} ) ) 73 73 || 74 74 ( ${COMP_CWORD} -eq 2 && … … 149 149 fi 150 150 } 151 151 152 complete -F _django_completion django-admin .py manage.py django-admin152 complete -F _django_completion django-admin-2.6.py manage.py django-admin 153 153 154 154 # Support for multiple interpreters. 155 155 unset pythons