mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05: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
|
||||
|
||||
_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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue