The following commit has been merged in the master branch:
commit 286f7ec44eb0e70043a6ea5f928f6fac8f0f8163
Author: Ville Skyttä <[email protected]>
Date:   Mon Nov 7 20:11:19 2011 +0200

    cppcheck: Offer header filename completions too.

diff --git a/completions/cppcheck b/completions/cppcheck
index 5dd3093..dc32139 100644
--- a/completions/cppcheck
+++ b/completions/cppcheck
@@ -52,7 +52,7 @@ _cppcheck()
         COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
         [[ $COMPREPLY == *= ]] && compopt -o nospace
     else
-        _filedir @(cpp|cxx|cc|c++|c|tpp|txx)
+        _filedir @(cpp|cxx|cc|c++|c|h|hpp|hxx|h++|tpp|txx)
     fi
 } &&
 complete -F _cppcheck cppcheck

-- 
bash-completion

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits

Reply via email to