diff options
author | Eric NOULARD <eric.noulard@gmail.com> | 2010-08-13 15:11:42 (GMT) |
---|---|---|
committer | Eric NOULARD <eric.noulard@gmail.com> | 2010-08-13 15:11:42 (GMT) |
commit | 1715c96b3c5862cb7b566a224c66e16d15bfa466 (patch) | |
tree | 2096e942f663d3f71fb6694e46a69cf71cd2e1c4 /Docs | |
parent | e41f813d12fb8c3551d87a91435f9c4ba5375949 (diff) | |
download | CMake-1715c96b3c5862cb7b566a224c66e16d15bfa466.zip CMake-1715c96b3c5862cb7b566a224c66e16d15bfa466.tar.gz CMake-1715c96b3c5862cb7b566a224c66e16d15bfa466.tar.bz2 |
Improve cmake-completion (install doc, ctest -R completion)
Diffstat (limited to 'Docs')
-rw-r--r-- | Docs/cmake-completion | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Docs/cmake-completion b/Docs/cmake-completion index ab6272a..011f3fa 100644 --- a/Docs/cmake-completion +++ b/Docs/cmake-completion @@ -16,6 +16,13 @@ # # The file has been proposed for inclusion in the bash-completion package # https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312632&group_id=100114 +# In the meantime, +# 1) If you want to test bash completion for cmake/cpack/ctest +# just source the current file at bash prompt +# . ./cmake-completion +# +# 2) If you want to install it for good copy this file to +# cp cmake-completion /etc/bash_completion.d/cmake # # @@ -153,6 +160,11 @@ _ctest() COMPREPLY=( $(compgen -W "${running}" -- ${cur}) ) return 0 ;; + -R) + local running=$(for x in `ctest -N 2> /dev/null | grep "^ Test" | cut -d: -f 2`; do echo ${x} ; done ) + COMPREPLY=( $(compgen -W "${running}" -- ${cur}) ) + return 0 + ;; *) ;; esac |