Avoiding re-sourcing of bash completion based on presence of a different (more likely present) completion.

This commit is contained in:
Dan Buch 2012-03-16 09:26:25 -04:00
parent a87973d159
commit 43bd86588c

View File

@ -486,7 +486,7 @@ _count_args()
_source_local_bash_completion()
{
# source completion directory definitions
if [ -n "$(complete | grep "post-review")" ]
if [ -n "$(complete | grep "__proj_activate")" ]
then
return 2
fi
@ -510,5 +510,4 @@ _source_local_bash_completion()
_source_local_bash_completion
unset _source_local_bash_completion
# vim:filetype=sh