Ticket #1240: a_better_app_completion.diff
File a_better_app_completion.diff, 790 bytes (added by , 18 years ago) |
---|
-
django_bash_completion
60 60 ( ${COMP_CWORD} -eq 2 && 61 61 ( $( basename ${COMP_WORDS[0]} ) == python ) && 62 62 ( $( basename ${COMP_WORDS[1]} ) == manage.py) && 63 ( -r ${COMP_WORDS[1]} ) ) 64 || 65 ( ${COMP_CWORD} -eq 2 && 66 ( $( basename ${COMP_WORDS[0]} ) == python ) && 67 ( $( basename ${COMP_WORDS[1]} ) == django-admin.py) && 63 68 ( -r ${COMP_WORDS[1]} ) ) ]] ; then 64 69 65 70 case ${cur} in … … 135 140 } 136 141 137 142 complete -F _django_completion django-admin.py manage.py 143 complete -F _django_completion -o default python