forked from external/yambar
completions: add zsh completions
This commit is contained in:
parent
74fca1efef
commit
6513652711
3 changed files with 12 additions and 0 deletions
2
completions/meson.build
Normal file
2
completions/meson.build
Normal file
|
@ -0,0 +1,2 @@
|
|||
zsh_install_dir = join_paths(get_option('datadir'), 'zsh/site-functions')
|
||||
install_data('zsh/_f00bar', install_dir: zsh_install_dir)
|
9
completions/zsh/_f00bar
Normal file
9
completions/zsh/_f00bar
Normal file
|
@ -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]'
|
|
@ -82,6 +82,7 @@ if backend_x11
|
|||
install_headers('xcb.h', subdir: 'f00bar')
|
||||
endif
|
||||
|
||||
subdir('completions')
|
||||
subdir('doc')
|
||||
subdir('bar')
|
||||
subdir('decorations')
|
||||
|
|
Loading…
Add table
Reference in a new issue