From 286f7ec44eb0e70043a6ea5f928f6fac8f0f8163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 7 Nov 2011 20:11:19 +0200 Subject: [PATCH] cppcheck: Offer header filename completions too. --- completions/cppcheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/cppcheck b/completions/cppcheck index 5dd30931..dc321398 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