diff --git a/extras/django_bash_completion b/extras/django_bash_completion index 1fac9ea2aaf..06a2321ff3c 100755 --- a/extras/django_bash_completion +++ b/extras/django_bash_completion @@ -61,7 +61,7 @@ unset pythons if command -v whereis &>/dev/null; then python_interpreters=$(whereis python | cut -d " " -f 2-) for python in $python_interpreters; do - pythons="${pythons} ${python##*/}" + [[ $python != *-config ]] && pythons="${pythons} ${python##*/}" done unset python_interpreters pythons=$(echo $pythons | tr " " "\n" | sort -u | tr "\n" " ")