| 1 |
#compdef foot |
| 2 |
|
| 3 |
_arguments \ |
| 4 |
-s -S -C \ |
| 5 |
'(-c --config)'{-c,--config}'[path to configuration file (XDG_CONFIG_HOME/foot/foot.ini)]:config:_files' \ |
| 6 |
'(-C --check-config)'{-C,--check-config}'[verify configuration and exit with 0 if ok, otherwise exit with 1]' \ |
| 7 |
'(-o --override)'{-o,--override}'[configuration option to override, in form SECTION.KEY=VALUE]:()' \ |
| 8 |
'(-f --font)'{-f,--font}'[font name and style in fontconfig format (monospace)]:font:->fonts' \ |
| 9 |
'(-t --term)'{-t,--term}'[value to set the environment variable TERM to (foot)]:term:->terms' \ |
| 10 |
'(-T --title)'{-T,--title}'[initial window title]:()' \ |
| 11 |
'(-a --app-id)'{-a,--app-id}'[value to set the app-id property on the Wayland window to (foot)]:()' \ |
| 12 |
'--toplevel-tag=[value to set the toplevel-tag property on the Wayland window to]:()' \ |
| 13 |
'(-m --maximized)'{-m,--maximized}'[start in maximized mode]' \ |
| 14 |
'(-F --fullscreen)'{-F,--fullscreen}'[start in fullscreen mode]' \ |
| 15 |
'(-L --login-shell)'{-L,--login-shell}'[start shell as a login shell]' \ |
| 16 |
'(-D --working-directory)'{-D,--working-directory}'[initial working directory for the client application (CWD)]:working_directory:_files' \ |
| 17 |
'(-w --window-size-pixels)'{-w,--window-size-pixels}'[window WIDTHxHEIGHT, in pixels (700x500)]:size_pixels:()' \ |
| 18 |
'(-W --window-size-chars)'{-W,--window-size-chars}'[window WIDTHxHEIGHT, in characters (not set)]:size_chars:()' \ |
| 19 |
'(-s --server)'{-s,--server}'[run as server; open terminals by running footclient]:server:_files' \ |
| 20 |
'(-H --hold)'{-H,--hold}'[remain open after child process exits]' \ |
| 21 |
'(-p --print-pid)'{-p,--print-pid}'[print PID to this file or FD when up and running (server mode only)]:pidfile:_files' \ |
| 22 |
'--pty=[display an existing pty instead of creating one]:pty:_files' \ |
| 23 |
'(-d --log-level)'{-d,--log-level}'[log level (warning)]:loglevel:(info warning error none)' \ |
| 24 |
'(-l --log-colorize)'{-l,--log-colorize}'[enable or disable colorization of log output on stderr]:logcolor:(never always auto)' \ |
| 25 |
'(-S --log-no-syslog)'{-s,--log-no-syslog}'[disable syslog logging (server mode only)]' \ |
| 26 |
'(-v --version)'{-v,--version}'[show the version number and quit]' \ |
| 27 |
'(-h --help)'{-h,--help}'[show help message and quit]' \ |
| 28 |
':command: _command_names -e' \ |
| 29 |
'*::command arguments: _dispatch ${words[1]} ${words[1]}' |
| 30 |
|
| 31 |
case ${state} in |
| 32 |
fonts) |
| 33 |
IFS=$'\n' |
| 34 |
_values -s , 'font families' $(fc-list : family | sed 's/,/\n/g' | sort | uniq) |
| 35 |
unset IFS |
| 36 |
;; |
| 37 |
|
| 38 |
terms) |
| 39 |
_values 'terminal definitions' /usr/share/terminfo/**/*(.:t) |
| 40 |
;; |
| 41 |
esac |