Is it possible to use Django bash completion in zsh
You could patch django_bash_completion
something like below:
--- django_bash_completion.old 2014-12-23 10:41:35.589103686 +0900+++ django_bash_completion 2014-12-23 10:43:27.224848105 +0900@@ -33,7 +33,7 @@ _django_completion() {- COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \+ COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \ COMP_CWORD=$COMP_CWORD \ DJANGO_AUTO_COMPLETE=1 $1 ) ) }
On zsh (zsh-5.0.7 here), it works fine with explicitly using env(1)
. Above patch does not hurt bash (I've tested on bash-4.3.30(1)-release).