Skip to content

Commit

Permalink
scripts: change fallback dir of bash completion
Browse files Browse the repository at this point in the history
and update docu
see #832
  • Loading branch information
Markus Raab committed Jul 15, 2016
1 parent f8db4df commit 1532137
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion doc/COMPILE.md
Expand Up @@ -341,10 +341,15 @@ Currently the installed system files are as following:

| Module | Description | Install Path |
|-----------------|---------------------------------|----------------------------------------|
| bash-completion | bash tab auto completion file | `BASH_COMPLETION_COMPLETIONSDIR` variable in bash-completions cmake file and pkg-config. Falls back to `/etc/bash_completion.d`.|
| bash-completion | bash tab auto completion file | `BASH_COMPLETION_COMPLETIONSDIR` (*) |
| zsh-completion | zsh tab auto completion file | /usr/share/zsh/vendor-completions |
| GIR | introspection file for bindings | `INTROSPECTION_GIRDIR` from pkg-config |
| GSettings | GSettings backend module | `GIO_MODULE_DIR` from pkg-config |


(*) variable in bash-completions cmake file.
Without the variable set and pkg-config it will fall back to `/usr/share/bash-completion/completions`.

## BUILDING ##

### NO IDE ###
Expand Down
6 changes: 3 additions & 3 deletions scripts/CMakeLists.txt
Expand Up @@ -32,15 +32,15 @@ if (INSTALL_SYSTEM_FILES)
include (LibFindMacros)
pkg_get_variable (BASH_COMPLETION_COMPLETIONSDIR bash-completion completionsdir)
else ()
set (BASH_COMPLETION_COMPLETIONSDIR "/etc/bash_completion.d")
set (BASH_COMPLETION_COMPLETIONSDIR "/usr/share/bash-completion/completions")
endif ()
endif ()
install (FILES kdb-bash-completion
DESTINATION ${BASH_COMPLETION_COMPLETIONSDIR}
RENAME kdb)
install (FILES kdb_zsh_completion
DESTINATION /usr/share/zsh/vendor-completions
RENAME _kdb)
DESTINATION "/usr/share/zsh/vendor-completions"
RENAME "_kdb")
endif()

configure_file(
Expand Down

0 comments on commit 1532137

Please sign in to comment.