From 43bd86588caad2c400bbb7485d5be5acfb9ec5a3 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Fri, 16 Mar 2012 09:26:25 -0400 Subject: [PATCH] Avoiding re-sourcing of bash completion based on presence of a different (more likely present) completion. --- bash_completion | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bash_completion b/bash_completion index 4ff09f8..ebbf30f 100644 --- a/bash_completion +++ b/bash_completion @@ -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