Add zsh completions

This commit is contained in:
Nick Hastings 2024-03-29 09:26:47 +09:00 committed by Leon Henrik Plickat
commit c1919dc3a7
Failed to generate hash of commit
2 changed files with 20 additions and 0 deletions

17
zsh-completion Normal file
View file

@ -0,0 +1,17 @@
#compdef wayneko
types=('neko' 'inu' 'random')
layers=('background' 'bottom' 'top' 'overlay')
bools=('true' 'false')
_arguments '--help[Print help]' \
'--outline-colour:0xRRGGBB[AA]' \
'--background-colour:0xRRGGBB[AA]' \
'--type[Animal type]:type:{_describe "type" types}' \
'--idle-sleep:integer' \
'--sleepiness:integer' \
'--sleepiness-night:integer' \
'--layer[Layer for the surface]:layer:{_describe "layer" layers}' \
'--follow-pointer[Follows pointer]:bool:{_describe "bool" bools}' \
'--survive-close[Can migrate outputs if closed]' \
&& return 0