diff --git a/README b/README index 256adaf5..78cde728 100644 --- a/README +++ b/README @@ -139,7 +139,20 @@ Q. I author/maintain package X and would like to maintain my own dist_bashcomp_DATA = # completion files go here For cmake we ship the bash-completion-config.cmake and - bash-completion-config-version.cmake files. + bash-completion-config-version.cmake files. Example usage: + + find_package(bash-completion) + if(BASH_COMPLETION_FOUND) + message(STATUS + "Using bash completion dir ${BASH_COMPLETION_COMPLETIONSDIR}") + else() + set (BASH_COMPLETION_COMPLETIONSDIR "/etc/bash_completion.d") + message (STATUS + "Using fallback bash completion dir ${BASH_COMPLETION_COMPLETIONSDIR}") + endif() + + install(FILES your-completion-file DESTINATION + ${BASH_COMPLETION_COMPLETIONSDIR}) Q. I use CVS in combination with passwordless ssh access to my remote repository. How can I have the cvs command complete on remotely