Skip to content

Commit f4c58c9

Browse files
committed
docs(README): use .bash suffix in autotools and cmake examples
1 parent b4b88d4 commit f4c58c9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)