Ticket #1240: django_bash_completion.diff

File django_bash_completion.diff, 657 bytes (added by Wonlay, 16 years ago)

Fix problems when tabs are used for indent of settings.py

  • extras/django_bash_completion

     
    111111                else
    112112                    apps=`sed -n "/INSTALLED_APPS = (/,/)/p" $settings | \
    113113                          grep -v "django.contrib" |
    114                           sed -n "s/^[ ]*'\(.*\.\)*\(.*\)'.*$/\2 /pg" | \
     114                          sed -n "s/^[ \t]*'\(.*\.\)*\(.*\)'.*$/\2 /pg" | \
    115115                          tr -d "\n"`
    116116                    COMPREPLY=( $(compgen -W "${apps}" -- ${cur}) )
    117117                fi
Back to Top