[CMake] bash completion for cmake

Eric Noulard eric.noulard at gmail.com
Tue Jul 27 08:35:59 EDT 2010


2010/7/27 Eric Noulard <eric.noulard at gmail.com>:
> Here comes a proposal for a bash completion for cmake. Should work with almost
> any cmake version because it's using cmake command to retrieve completion.
>
> Prerequisite: You should have "bash-completion" package installed.
>
> If you want to try  you may either:
>
> 1) add the attache "cmake" file to /etc/bach_completion.d/
> 2) source the file in your current (bash shell)
>    $ . .cmake
>
> then
>
> $ cmake <TAB><TAB> offers first level completion
>
> $ cmake --help-command <TAB><TAB> offers second level completion

Here comes an updated file with some support for cpack and ctest too.

I did submit this as a proposal to bash-completion project:
https://alioth.debian.org/tracker/index.php?func=detail&aid=312632&group_id=100114&atid=413095

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake-completion
Type: application/octet-stream
Size: 4445 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100727/cf417e45/attachment-0001.obj>


More information about the CMake mailing list