Commit efa2b6d8 authored by Sebastian Ramacher's avatar Sebastian Ramacher
Browse files

Merge branch 'develop' into 'develop'

Proper installation of shell completions

See merge request !25
parents 99a49838 d21d0406
......@@ -70,6 +70,20 @@ fish_completion = configure_file(
configuration: conf_data
install_data(bash_completion, install_dir: join_paths(datadir, 'bash-completion', 'completions'))
bash_comp = dependency('bash-completion', required: false)
if bash_comp.found()
bash_compdir = bash_comp.get_pkgconfig_variable('completionsdir')
bash_compdir = join_paths(datadir, 'bash-completion', 'completions')
fish_comp = dependency('fish', required: false)
if fish_comp.found()
fish_compdir = fish_comp.get_pkgconfig_variable('completionsdir')
fish_compdir = join_paths(datadir, 'fish', 'vendor_completions.d')
install_data(bash_completion, install_dir: bash_compdir)
install_data(zsh_completion, install_dir: join_paths(datadir, 'zsh', 'site-functions'))
install_data(fish_completion, install_dir: join_paths(datadir, 'fish', 'completions'))
install_data(fish_completion, install_dir: fish_compdir)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment