<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

On Wed, Feb 06, 2013 at 05:50:08PM +0100, CircleCode wrote:<br>
[...]<br>
> Is there a way to detect that a git completion is enabled before invoking<br>
> it?<br>
<br>
$ complete -p git && echo "git completion is enabled"<br>
# or did I missed something ?<br>
<br></blockquote><div>the trick is that it seems dynamic:<br><br>here come 3 commands I launch successivley:<br><br> $ complete -p git<br>bash: complete: git : pas d'indication de complètement<br># which is the French for "no completion indications"<br>

<br>$ git <tab><tab><br>[…] (completions)<br><br>$ complete -p git<br>complete -o bashdefault -o default -o nospace -F __git_wrap__git_main git<br># here you can see than after the completion function has been used once, it is shown by git complete -p<br>

<br><br></div></div>