mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-16 05:34:00 -04:00
completions: zsh: complete command/shell, and its arguments
This commit is contained in:
parent
5b70f94827
commit
2e7ead42de
2 changed files with 8 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#compdef foot
|
#compdef foot
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
-s \
|
-s -S -C \
|
||||||
'(-c --config)'{-c,--config}'[path to configuration file (XDG_CONFIG_HOME/footrc)]:config:_files' \
|
'(-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' \
|
'(-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' \
|
'(-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)' \
|
'(-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)]' \
|
'(-S --log-no-syslog)'{-s,--log-no-syslog}'[disable syslog logging (server mode only)]' \
|
||||||
'(-v --version)'{-v,--version}'[show the version number and quit]' \
|
'(-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
|
case ${state} in
|
||||||
fonts)
|
fonts)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#compdef footclient
|
#compdef footclient
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
-s \
|
-s -S -C \
|
||||||
'(-t --term)'{-t,--term}'[value to set the environment variable TERM to (foot)]:term:->terms' \
|
'(-t --term)'{-t,--term}'[value to set the environment variable TERM to (foot)]:term:->terms' \
|
||||||
'--title[initial window title]:()' \
|
'--title[initial window title]:()' \
|
||||||
'(-a --app-id)'{-a,--app-id}'[value to set the app-id property on the Wayland window to (foot)]:()' \
|
'(-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' \
|
'(-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)' \
|
'(-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]' \
|
'(-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
|
case ${state} in
|
||||||
terms)
|
terms)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue