completions: zsh: complete command/shell, and its arguments

This commit is contained in:
Daniel Eklöf 2020-05-08 18:45:05 +02:00
parent 5b70f94827
commit 2e7ead42de
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 8 additions and 4 deletions

View file

@ -1,7 +1,7 @@
#compdef foot
_arguments \
-s \
-s -S -C \
'(-c --config)'{-c,--config}'[path to configuration file (XDG_CONFIG_HOME/footrc)]:config:_files' \
'(-f --font)'{-f,--font}'[font name and style in fontconfig format (monospace)]:font:->fonts' \
'(-t --term)'{-t,--term}'[value to set the environment variable TERM to (foot)]:term:->terms' \
@ -17,7 +17,9 @@ _arguments \
'(-l --log-colorize)'{-l,--log-colorize}'[enable or disable colorization of log output on stderr]:logcolor:(never always auto)' \
'(-S --log-no-syslog)'{-s,--log-no-syslog}'[disable syslog logging (server mode only)]' \
'(-v --version)'{-v,--version}'[show the version number and quit]' \
'(-h --help)'{-h,--help}'[show help message and quit]'
'(-h --help)'{-h,--help}'[show help message and quit]' \
':command: _command_names -e' \
'*::command arguments: _dispatch ${words[1]} ${words[1]}'
case ${state} in
fonts)

View file

@ -1,7 +1,7 @@
#compdef footclient
_arguments \
-s \
-s -S -C \
'(-t --term)'{-t,--term}'[value to set the environment variable TERM to (foot)]:term:->terms' \
'--title[initial window title]:()' \
'(-a --app-id)'{-a,--app-id}'[value to set the app-id property on the Wayland window to (foot)]:()' \
@ -11,7 +11,9 @@ _arguments \
'(-s --server-socket)'{-s,--server-socket}'[override the default path to the foot server socket (XDG_RUNTIME_DIR/foot.sock)]:server:_files' \
'(-l --log-colorize)'{-l,--log-colorize}'[enable or disable colorization of log output on stderr]:logcolor:(never always auto)' \
'(-v --version)'{-v,--version}'[show the version number and quit]' \
'(-h --help)'{-h,--help}'[show help message and quit]'
'(-h --help)'{-h,--help}'[show help message and quit]' \
':command: _command_names -e' \
'*::command arguments: _dispatch ${words[1]} ${words[1]}'
case ${state} in
terms)