Ticket #7268: 02_bash_completion.diff
File 02_bash_completion.diff, 1.4 KB (added by , 17 years ago) |
---|
-
extras/
old new _django_completion() 53 53 action_shell_opts="--plain" 54 54 action_runfcgi_opts="host port socket method maxspare minspare maxchildren daemonize pidfile workdir" 55 55 56 if [[ # django-admin.py, ./manage, manage.py56 if [[ # django-admin.py, django-admin, ./manage, manage.py 57 57 ( ${COMP_CWORD} -eq 1 && 58 58 ( ${COMP_WORDS[0]} == django-admin.py || 59 ${COMP_WORDS[0]} == django-admin || 59 60 ${COMP_WORDS[0]} == ./manage.py || 60 61 ${COMP_WORDS[0]} == manage.py ) ) 61 62 || … … _django_completion() 68 69 ( ${COMP_CWORD} -eq 2 && 69 70 ( $( basename -- ${COMP_WORDS[0]} ) == python?([1-9]\.[0-9]) ) && 70 71 ( $( basename -- ${COMP_WORDS[1]} ) == django-admin.py) && 72 ( -r ${COMP_WORDS[1]} ) ) 73 || 74 ( ${COMP_CWORD} -eq 2 && 75 ( $( basename -- ${COMP_WORDS[0]} ) == python?([1-9]\.[0-9]) ) && 76 ( $( basename -- ${COMP_WORDS[1]} ) == django-admin) && 71 77 ( -r ${COMP_WORDS[1]} ) ) ]] ; then 72 78 73 79 case ${cur} in … … _django_completion() 142 148 fi 143 149 } 144 150 145 complete -F _django_completion django-admin.py manage.py 151 complete -F _django_completion django-admin.py manage.py django-admin 146 152 147 153 # Support for multiple interpreters. 148 154 unset pythons