diff --git a/completions/meson.build b/completions/meson.build new file mode 100644 index 0000000..101b54f --- /dev/null +++ b/completions/meson.build @@ -0,0 +1,2 @@ +zsh_install_dir = join_paths(get_option('datadir'), 'zsh/site-functions') +install_data('zsh/_f00bar', install_dir: zsh_install_dir) diff --git a/completions/zsh/_f00bar b/completions/zsh/_f00bar new file mode 100644 index 0000000..9529a01 --- /dev/null +++ b/completions/zsh/_f00bar @@ -0,0 +1,9 @@ +#compdef f00bar + +_arguments \ + -s \ + '(-v --version)'{-v,--version}'[show the version number and quit]' \ + '(-h --help)'{-h,--help}'[show help message and quit]' \ + '(-b --backend)'{-b,--backend}'[backend to use; xcb,wayland,auto (default: auto)]' \ + '(-c --config)'{-c,--config}'[alternative configuration file]' \ + '(-C --validate)'{-C,--validate}'[verify configuration then quit]' diff --git a/meson.build b/meson.build index e1c5fe9..34c9c95 100644 --- a/meson.build +++ b/meson.build @@ -82,6 +82,7 @@ if backend_x11 install_headers('xcb.h', subdir: 'f00bar') endif +subdir('completions') subdir('doc') subdir('bar') subdir('decorations')