Skip to content

Commit

Permalink
meson: install bash completion
Browse files Browse the repository at this point in the history
  • Loading branch information
1ace committed Jul 30, 2018
1 parent c4b4da5 commit b9d531b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions meson.build
Expand Up @@ -191,3 +191,15 @@ if (get_option('zsh_completions'))

install_data(zsh_files, install_dir: zsh_install_dir)
endif

if (get_option('bash_completions'))
bash_files = files(
'completions/bash/sway',
'completions/bash/swayidle',
'completions/bash/swaylock',
'completions/bash/swaymsg',
)
bash_install_dir = datadir + '/bash-completion/completions'

install_data(bash_files, install_dir: bash_install_dir)
endif
1 change: 1 addition & 0 deletions meson_options.txt
@@ -1,4 +1,5 @@
option('sway_version', type : 'string', description: 'The version string reported in `sway --version`.')
option('default_wallpaper', type: 'boolean', value: true, description: 'Install the default wallpaper.')
option('zsh_completions', type: 'boolean', value: true, description: 'Install zsh shell completions.')
option('bash_completions', type: 'boolean', value: true, description: 'Install bash shell completions.')
option('enable-xwayland', type: 'boolean', value: true, description: 'Enable support for X11 applications')

0 comments on commit b9d531b

Please sign in to comment.