File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ A. [ Disclaimer: Here, how to make the completion code visible to
211211
212212 ``` makefile
213213 bashcompdir = @bashcompdir@
214- dist_bashcomp_DATA = your-completion-file # completion files go here
214+ dist_bashcomp_DATA = your-completion-file.bash # completion files go here
215215 `` `
216216
217217 For cmake we ship the ` bash-completion-config.cmake` and
@@ -229,7 +229,7 @@ A. [ Disclaimer: Here, how to make the completion code visible to
229229 "Using fallback bash completion dir ${BASH_COMPLETION_COMPLETIONSDIR}")
230230 endif()
231231
232- install(FILES your-completion-file DESTINATION
232+ install(FILES your-completion-file.bash DESTINATION
233233 ${BASH_COMPLETION_COMPLETIONSDIR})
234234 ```
235235
@@ -246,13 +246,13 @@ A. [ Disclaimer: Here, how to make the completion code visible to
246246
247247 ``` makefile
248248 bashcompdir = $(datarootdir ) /bash-completion/completions
249- dist_bashcomp_DATA = your-completion-file
249+ dist_bashcomp_DATA = your-completion-file.bash
250250 ```
251251
252252 Example for ` CMakeLists.txt ` :
253253
254254 ``` cmake
255- install(FILES your-completion-file DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/bash-completion/completions")
255+ install(FILES your-completion-file.bash DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/bash-completion/completions")
256256 ```
257257
258258** Q. When completing on a symlink to a directory, bash does not append
You can’t perform that action at this time.
0 commit comments