diff options
Diffstat (limited to 'completions')
| -rw-r--r-- | completions/meson.build | 2 | ||||
| -rw-r--r-- | completions/zsh/_foot | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/completions/meson.build b/completions/meson.build new file mode 100644 index 00000000..5ab3dded --- /dev/null +++ b/completions/meson.build @@ -0,0 +1,2 @@ +zsh_install_dir = join_paths(get_option('datadir'), 'zsh/site-functions') +install_data('zsh/_foot', install_dir: zsh_install_dir) diff --git a/completions/zsh/_foot b/completions/zsh/_foot new file mode 100644 index 00000000..cbdc7032 --- /dev/null +++ b/completions/zsh/_foot @@ -0,0 +1,14 @@ +#compdef foot + +_arguments \ + -s \ + '(-v --version)'{-v,--version}'[show the version number and quit]' \ + '(-h --help)'{-h,--help}'[show help message and quit]' \ + '(-f --font)'{-f,--font}'[font name and style in fontconfig format (monospace)]:font:->fonts' \ + '(-g --geometry)'{-g,--geometry}'[window WIDTHxHEIGHT, in pixels (84x24 cells)]' + +case "${state}" in + fonts) + _values 'font families' $(fc-list : family | tr -d ' ') + ;; +esac |
