Ticket #3641: django_bash_completion.diff
File django_bash_completion.diff, 769 bytes (added by , 18 years ago) |
---|
-
django_bash_completion
145 145 complete -F _django_completion django-admin.py manage.py 146 146 147 147 # Support for multiple interpreters. 148 unset pythons 148 unset pythons 149 149 if command -v whereis &>/dev/null; then 150 python_interpreters=$(whereis -bpython | cut -d " " -f 2-)150 python_interpreters=$(whereis python | cut -d " " -f 2-) 151 151 for python in $python_interpreters; do 152 pythons="${pythons} $(basename $python)" 152 if [ -x ${python} ]; then 153 pythons="${pythons} $(basename $python)" 154 fi; 153 155 done 154 156 pythons=$(echo $pythons | tr " " "\n" | sort -u | tr "\n" " ") 155 157 else