Skip to content

Commit a95bbb7

Browse files
committed
docs(README): use datadir, not datarootdir in install tips
#1379 (comment)
1 parent f3906f4 commit a95bbb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,14 @@ A. [ Disclaimer: Here, how to make the completion code visible to
234234
Example for `Makefile.am`:
235235

236236
```makefile
237-
bashcompdir = $(datarootdir)/bash-completion/completions
237+
bashcompdir = $(datadir)/bash-completion/completions
238238
dist_bashcomp_DATA = your-completion-file
239239
```
240240

241241
Example for `CMakeLists.txt`:
242242

243243
```cmake
244-
install(FILES your-completion-file DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/bash-completion/completions")
244+
install(FILES your-completion-file DESTINATION "${CMAKE_INSTALL_DATADIR}/bash-completion/completions")
245245
```
246246

247247
**Q. When completing on a symlink to a directory, bash does not append

0 commit comments

Comments
 (0)