aboutsummaryrefslogtreecommitdiff
path: root/extra/completions
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2024-07-17 04:47:13 +0300
committerKirill Chibisov <contact@kchibisov.com>2024-07-17 11:02:31 +0300
commitf5e02862ffdcc579264ce85f11aed96732b257ff (patch)
tree4c6520c2c0ef1ef26cdf740b9fe7151ea1e7ba4d /extra/completions
parent3504246c3f57769ca0528fe397e866a13c49f039 (diff)
downloadalacritty-f5e02862ffdcc579264ce85f11aed96732b257ff.tar.gz
alacritty-f5e02862ffdcc579264ce85f11aed96732b257ff.zip
Bump dependencies
Update winit and clap to latest versions.
Diffstat (limited to 'extra/completions')
-rw-r--r--extra/completions/_alacritty122
-rw-r--r--extra/completions/alacritty.bash94
-rw-r--r--extra/completions/alacritty.fish120
3 files changed, 227 insertions, 109 deletions
diff --git a/extra/completions/_alacritty b/extra/completions/_alacritty
index a510fb15..a9260d5c 100644
--- a/extra/completions/_alacritty
+++ b/extra/completions/_alacritty
@@ -14,7 +14,7 @@ _alacritty() {
fi
local context curcontext="$curcontext" state line
- _arguments "${_arguments_options[@]}" \
+ _arguments "${_arguments_options[@]}" : \
'--embed=[X11 window ID to embed Alacritty within (decimal or hexadecimal with "0x" prefix)]:EMBED: ' \
'--config-file=[Specify alternative configuration file \[default\: \$XDG_CONFIG_HOME/alacritty/alacritty.toml\]]:CONFIG_FILE:_files' \
'--socket=[Path for IPC socket creation]:SOCKET:_files' \
@@ -45,7 +45,7 @@ _alacritty() {
curcontext="${curcontext%:*:*}:alacritty-command-$line[1]:"
case $line[1] in
(msg)
-_arguments "${_arguments_options[@]}" \
+_arguments "${_arguments_options[@]}" : \
'-s+[IPC socket connection path override]:SOCKET:_files' \
'--socket=[IPC socket connection path override]:SOCKET:_files' \
'-h[Print help]' \
@@ -61,7 +61,7 @@ _arguments "${_arguments_options[@]}" \
curcontext="${curcontext%:*:*}:alacritty-msg-command-$line[1]:"
case $line[1] in
(create-window)
-_arguments "${_arguments_options[@]}" \
+_arguments "${_arguments_options[@]}" : \
'--working-directory=[Start the shell in the specified working directory]:WORKING_DIRECTORY:_files' \
'*-e+[Command and args to execute (must be last argument)]:COMMAND: ' \
'*--command=[Command and args to execute (must be last argument)]:COMMAND: ' \
@@ -76,7 +76,7 @@ _arguments "${_arguments_options[@]}" \
&& ret=0
;;
(config)
-_arguments "${_arguments_options[@]}" \
+_arguments "${_arguments_options[@]}" : \
'-w+[Window ID for the new config]:WINDOW_ID: ' \
'--window-id=[Window ID for the new config]:WINDOW_ID: ' \
'()-r[Clear all runtime configuration changes]' \
@@ -87,7 +87,7 @@ _arguments "${_arguments_options[@]}" \
&& ret=0
;;
(help)
-_arguments "${_arguments_options[@]}" \
+_arguments "${_arguments_options[@]}" : \
":: :_alacritty__msg__help_commands" \
"*::: :->help" \
&& ret=0
@@ -99,15 +99,15 @@ _arguments "${_arguments_options[@]}" \
curcontext="${curcontext%:*:*}:alacritty-msg-help-command-$line[1]:"
case $line[1] in
(create-window)
-_arguments "${_arguments_options[@]}" \
+_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(config)
-_arguments "${_arguments_options[@]}" \
+_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
-_arguments "${_arguments_options[@]}" \
+_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
@@ -119,7 +119,7 @@ esac
esac
;;
(migrate)
-_arguments "${_arguments_options[@]}" \
+_arguments "${_arguments_options[@]}" : \
'-c+[Path to the configuration file]:CONFIG_FILE:_files' \
'--config-file=[Path to the configuration file]:CONFIG_FILE:_files' \
'-d[Only output TOML config to STDOUT]' \
@@ -134,7 +134,7 @@ _arguments "${_arguments_options[@]}" \
&& ret=0
;;
(help)
-_arguments "${_arguments_options[@]}" \
+_arguments "${_arguments_options[@]}" : \
":: :_alacritty__help_commands" \
"*::: :->help" \
&& ret=0
@@ -146,7 +146,7 @@ _arguments "${_arguments_options[@]}" \
curcontext="${curcontext%:*:*}:alacritty-help-command-$line[1]:"
case $line[1] in
(msg)
-_arguments "${_arguments_options[@]}" \
+_arguments "${_arguments_options[@]}" : \
":: :_alacritty__help__msg_commands" \
"*::: :->msg" \
&& ret=0
@@ -158,11 +158,11 @@ _arguments "${_arguments_options[@]}" \
curcontext="${curcontext%:*:*}:alacritty-help-msg-command-$line[1]:"
case $line[1] in
(create-window)
-_arguments "${_arguments_options[@]}" \
+_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(config)
-_arguments "${_arguments_options[@]}" \
+_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
@@ -170,11 +170,11 @@ _arguments "${_arguments_options[@]}" \
esac
;;
(migrate)
-_arguments "${_arguments_options[@]}" \
+_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
-_arguments "${_arguments_options[@]}" \
+_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
@@ -195,36 +195,6 @@ _alacritty_commands() {
)
_describe -t commands 'alacritty commands' commands "$@"
}
-(( $+functions[_alacritty__help__msg__config_commands] )) ||
-_alacritty__help__msg__config_commands() {
- local commands; commands=()
- _describe -t commands 'alacritty help msg config commands' commands "$@"
-}
-(( $+functions[_alacritty__msg__config_commands] )) ||
-_alacritty__msg__config_commands() {
- local commands; commands=()
- _describe -t commands 'alacritty msg config commands' commands "$@"
-}
-(( $+functions[_alacritty__msg__help__config_commands] )) ||
-_alacritty__msg__help__config_commands() {
- local commands; commands=()
- _describe -t commands 'alacritty msg help config commands' commands "$@"
-}
-(( $+functions[_alacritty__help__msg__create-window_commands] )) ||
-_alacritty__help__msg__create-window_commands() {
- local commands; commands=()
- _describe -t commands 'alacritty help msg create-window commands' commands "$@"
-}
-(( $+functions[_alacritty__msg__create-window_commands] )) ||
-_alacritty__msg__create-window_commands() {
- local commands; commands=()
- _describe -t commands 'alacritty msg create-window commands' commands "$@"
-}
-(( $+functions[_alacritty__msg__help__create-window_commands] )) ||
-_alacritty__msg__help__create-window_commands() {
- local commands; commands=()
- _describe -t commands 'alacritty msg help create-window commands' commands "$@"
-}
(( $+functions[_alacritty__help_commands] )) ||
_alacritty__help_commands() {
local commands; commands=(
@@ -239,46 +209,76 @@ _alacritty__help__help_commands() {
local commands; commands=()
_describe -t commands 'alacritty help help commands' commands "$@"
}
-(( $+functions[_alacritty__msg__help_commands] )) ||
-_alacritty__msg__help_commands() {
+(( $+functions[_alacritty__help__migrate_commands] )) ||
+_alacritty__help__migrate_commands() {
+ local commands; commands=()
+ _describe -t commands 'alacritty help migrate commands' commands "$@"
+}
+(( $+functions[_alacritty__help__msg_commands] )) ||
+_alacritty__help__msg_commands() {
local commands; commands=(
'create-window:Create a new window in the same Alacritty process' \
'config:Update the Alacritty configuration' \
-'help:Print this message or the help of the given subcommand(s)' \
)
- _describe -t commands 'alacritty msg help commands' commands "$@"
+ _describe -t commands 'alacritty help msg commands' commands "$@"
}
-(( $+functions[_alacritty__msg__help__help_commands] )) ||
-_alacritty__msg__help__help_commands() {
+(( $+functions[_alacritty__help__msg__config_commands] )) ||
+_alacritty__help__msg__config_commands() {
local commands; commands=()
- _describe -t commands 'alacritty msg help help commands' commands "$@"
+ _describe -t commands 'alacritty help msg config commands' commands "$@"
}
-(( $+functions[_alacritty__help__migrate_commands] )) ||
-_alacritty__help__migrate_commands() {
+(( $+functions[_alacritty__help__msg__create-window_commands] )) ||
+_alacritty__help__msg__create-window_commands() {
local commands; commands=()
- _describe -t commands 'alacritty help migrate commands' commands "$@"
+ _describe -t commands 'alacritty help msg create-window commands' commands "$@"
}
(( $+functions[_alacritty__migrate_commands] )) ||
_alacritty__migrate_commands() {
local commands; commands=()
_describe -t commands 'alacritty migrate commands' commands "$@"
}
-(( $+functions[_alacritty__help__msg_commands] )) ||
-_alacritty__help__msg_commands() {
+(( $+functions[_alacritty__msg_commands] )) ||
+_alacritty__msg_commands() {
local commands; commands=(
'create-window:Create a new window in the same Alacritty process' \
'config:Update the Alacritty configuration' \
+'help:Print this message or the help of the given subcommand(s)' \
)
- _describe -t commands 'alacritty help msg commands' commands "$@"
+ _describe -t commands 'alacritty msg commands' commands "$@"
}
-(( $+functions[_alacritty__msg_commands] )) ||
-_alacritty__msg_commands() {
+(( $+functions[_alacritty__msg__config_commands] )) ||
+_alacritty__msg__config_commands() {
+ local commands; commands=()
+ _describe -t commands 'alacritty msg config commands' commands "$@"
+}
+(( $+functions[_alacritty__msg__create-window_commands] )) ||
+_alacritty__msg__create-window_commands() {
+ local commands; commands=()
+ _describe -t commands 'alacritty msg create-window commands' commands "$@"
+}
+(( $+functions[_alacritty__msg__help_commands] )) ||
+_alacritty__msg__help_commands() {
local commands; commands=(
'create-window:Create a new window in the same Alacritty process' \
'config:Update the Alacritty configuration' \
'help:Print this message or the help of the given subcommand(s)' \
)
- _describe -t commands 'alacritty msg commands' commands "$@"
+ _describe -t commands 'alacritty msg help commands' commands "$@"
+}
+(( $+functions[_alacritty__msg__help__config_commands] )) ||
+_alacritty__msg__help__config_commands() {
+ local commands; commands=()
+ _describe -t commands 'alacritty msg help config commands' commands "$@"
+}
+(( $+functions[_alacritty__msg__help__create-window_commands] )) ||
+_alacritty__msg__help__create-window_commands() {
+ local commands; commands=()
+ _describe -t commands 'alacritty msg help create-window commands' commands "$@"
+}
+(( $+functions[_alacritty__msg__help__help_commands] )) ||
+_alacritty__msg__help__help_commands() {
+ local commands; commands=()
+ _describe -t commands 'alacritty msg help help commands' commands "$@"
}
if [ "$funcstack[1]" = "_alacritty" ]; then
diff --git a/extra/completions/alacritty.bash b/extra/completions/alacritty.bash
index c1546f50..2c10d47c 100644
--- a/extra/completions/alacritty.bash
+++ b/extra/completions/alacritty.bash
@@ -72,15 +72,48 @@ _alacritty() {
return 0
;;
--config-file)
+ local oldifs
+ if [ -n "${IFS+x}" ]; then
+ oldifs="$IFS"
+ fi
+ IFS=$'\n'
COMPREPLY=($(compgen -f "${cur}"))
+ if [ -n "${oldifs+x}" ]; then
+ IFS="$oldifs"
+ fi
+ if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
+ compopt -o filenames
+ fi
return 0
;;
--socket)
+ local oldifs
+ if [ -n "${IFS+x}" ]; then
+ oldifs="$IFS"
+ fi
+ IFS=$'\n'
COMPREPLY=($(compgen -f "${cur}"))
+ if [ -n "${oldifs+x}" ]; then
+ IFS="$oldifs"
+ fi
+ if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
+ compopt -o filenames
+ fi
return 0
;;
--working-directory)
+ local oldifs
+ if [ -n "${IFS+x}" ]; then
+ oldifs="$IFS"
+ fi
+ IFS=$'\n'
COMPREPLY=($(compgen -f "${cur}"))
+ if [ -n "${oldifs+x}" ]; then
+ IFS="$oldifs"
+ fi
+ if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
+ compopt -o filenames
+ fi
return 0
;;
--command)
@@ -210,11 +243,33 @@ _alacritty() {
fi
case "${prev}" in
--config-file)
+ local oldifs
+ if [ -n "${IFS+x}" ]; then
+ oldifs="$IFS"
+ fi
+ IFS=$'\n'
COMPREPLY=($(compgen -f "${cur}"))
+ if [ -n "${oldifs+x}" ]; then
+ IFS="$oldifs"
+ fi
+ if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
+ compopt -o filenames
+ fi
return 0
;;
-c)
+ local oldifs
+ if [ -n "${IFS+x}" ]; then
+ oldifs="$IFS"
+ fi
+ IFS=$'\n'
COMPREPLY=($(compgen -f "${cur}"))
+ if [ -n "${oldifs+x}" ]; then
+ IFS="$oldifs"
+ fi
+ if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
+ compopt -o filenames
+ fi
return 0
;;
*)
@@ -232,11 +287,33 @@ _alacritty() {
fi
case "${prev}" in
--socket)
+ local oldifs
+ if [ -n "${IFS+x}" ]; then
+ oldifs="$IFS"
+ fi
+ IFS=$'\n'
COMPREPLY=($(compgen -f "${cur}"))
+ if [ -n "${oldifs+x}" ]; then
+ IFS="$oldifs"
+ fi
+ if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
+ compopt -o filenames
+ fi
return 0
;;
-s)
+ local oldifs
+ if [ -n "${IFS+x}" ]; then
+ oldifs="$IFS"
+ fi
+ IFS=$'\n'
COMPREPLY=($(compgen -f "${cur}"))
+ if [ -n "${oldifs+x}" ]; then
+ IFS="$oldifs"
+ fi
+ if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
+ compopt -o filenames
+ fi
return 0
;;
*)
@@ -276,7 +353,18 @@ _alacritty() {
fi
case "${prev}" in
--working-directory)
+ local oldifs
+ if [ -n "${IFS+x}" ]; then
+ oldifs="$IFS"
+ fi
+ IFS=$'\n'
COMPREPLY=($(compgen -f "${cur}"))
+ if [ -n "${oldifs+x}" ]; then
+ IFS="$oldifs"
+ fi
+ if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
+ compopt -o filenames
+ fi
return 0
;;
--command)
@@ -373,4 +461,8 @@ _alacritty() {
esac
}
-complete -F _alacritty -o nosort -o bashdefault -o default alacritty
+if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then
+ complete -F _alacritty -o nosort -o bashdefault -o default alacritty
+else
+ complete -F _alacritty -o bashdefault -o default alacritty
+fi
diff --git a/extra/completions/alacritty.fish b/extra/completions/alacritty.fish
index 72609f70..b7fa8ce6 100644
--- a/extra/completions/alacritty.fish
+++ b/extra/completions/alacritty.fish
@@ -1,47 +1,73 @@
-complete -c alacritty -n "__fish_use_subcommand" -l embed -d 'X11 window ID to embed Alacritty within (decimal or hexadecimal with "0x" prefix)' -r
-complete -c alacritty -n "__fish_use_subcommand" -l config-file -d 'Specify alternative configuration file [default: $XDG_CONFIG_HOME/alacritty/alacritty.toml]' -r -F
-complete -c alacritty -n "__fish_use_subcommand" -l socket -d 'Path for IPC socket creation' -r -F
-complete -c alacritty -n "__fish_use_subcommand" -l working-directory -d 'Start the shell in the specified working directory' -r -F
-complete -c alacritty -n "__fish_use_subcommand" -s e -l command -d 'Command and args to execute (must be last argument)' -r
-complete -c alacritty -n "__fish_use_subcommand" -s T -l title -d 'Defines the window title [default: Alacritty]' -r
-complete -c alacritty -n "__fish_use_subcommand" -l class -d 'Defines window class/app_id on X11/Wayland [default: Alacritty]' -r
-complete -c alacritty -n "__fish_use_subcommand" -s o -l option -d 'Override configuration file options [example: \'cursor.style="Beam"\']' -r
-complete -c alacritty -n "__fish_use_subcommand" -l print-events -d 'Print all events to STDOUT'
-complete -c alacritty -n "__fish_use_subcommand" -l ref-test -d 'Generates ref test'
-complete -c alacritty -n "__fish_use_subcommand" -s q -d 'Reduces the level of verbosity (the min level is -qq)'
-complete -c alacritty -n "__fish_use_subcommand" -s v -d 'Increases the level of verbosity (the max level is -vvv)'
-complete -c alacritty -n "__fish_use_subcommand" -l hold -d 'Remain open after child process exit'
-complete -c alacritty -n "__fish_use_subcommand" -s h -l help -d 'Print help'
-complete -c alacritty -n "__fish_use_subcommand" -s V -l version -d 'Print version'
-complete -c alacritty -n "__fish_use_subcommand" -f -a "msg" -d 'Send a message to the Alacritty socket'
-complete -c alacritty -n "__fish_use_subcommand" -f -a "migrate" -d 'Migrate the configuration file'
-complete -c alacritty -n "__fish_use_subcommand" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and not __fish_seen_subcommand_from create-window; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from help" -s s -l socket -d 'IPC socket connection path override' -r -F
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and not __fish_seen_subcommand_from create-window; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from help" -s h -l help -d 'Print help'
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and not __fish_seen_subcommand_from create-window; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from help" -f -a "create-window" -d 'Create a new window in the same Alacritty process'
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and not __fish_seen_subcommand_from create-window; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from help" -f -a "config" -d 'Update the Alacritty configuration'
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and not __fish_seen_subcommand_from create-window; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from create-window" -l working-directory -d 'Start the shell in the specified working directory' -r -F
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from create-window" -s e -l command -d 'Command and args to execute (must be last argument)' -r
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from create-window" -s T -l title -d 'Defines the window title [default: Alacritty]' -r
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from create-window" -l class -d 'Defines window class/app_id on X11/Wayland [default: Alacritty]' -r
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from create-window" -s o -l option -d 'Override configuration file options [example: \'cursor.style="Beam"\']' -r
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from create-window" -l hold -d 'Remain open after child process exit'
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from create-window" -s h -l help -d 'Print help'
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from config" -s w -l window-id -d 'Window ID for the new config' -r
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from config" -s r -l reset -d 'Clear all runtime configuration changes'
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from config" -s h -l help -d 'Print help (see more with \'--help\')'
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from help; and not __fish_seen_subcommand_from create-window; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from help" -f -a "create-window" -d 'Create a new window in the same Alacritty process'
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from help; and not __fish_seen_subcommand_from create-window; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from help" -f -a "config" -d 'Update the Alacritty configuration'
-complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from help; and not __fish_seen_subcommand_from create-window; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
-complete -c alacritty -n "__fish_seen_subcommand_from migrate" -s c -l config-file -d 'Path to the configuration file' -r -F
-complete -c alacritty -n "__fish_seen_subcommand_from migrate" -s d -l dry-run -d 'Only output TOML config to STDOUT'
-complete -c alacritty -n "__fish_seen_subcommand_from migrate" -s i -l skip-imports -d 'Do not recurse over imports'
-complete -c alacritty -n "__fish_seen_subcommand_from migrate" -l skip-renames -d 'Do not move renamed fields to their new location'
-complete -c alacritty -n "__fish_seen_subcommand_from migrate" -s s -l silent -d 'Do not output to STDOUT'
-complete -c alacritty -n "__fish_seen_subcommand_from migrate" -s h -l help -d 'Print help'
-complete -c alacritty -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from msg; and not __fish_seen_subcommand_from migrate; and not __fish_seen_subcommand_from help" -f -a "msg" -d 'Send a message to the Alacritty socket'
-complete -c alacritty -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from msg; and not __fish_seen_subcommand_from migrate; and not __fish_seen_subcommand_from help" -f -a "migrate" -d 'Migrate the configuration file'
-complete -c alacritty -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from msg; and not __fish_seen_subcommand_from migrate; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
-complete -c alacritty -n "__fish_seen_subcommand_from help; and __fish_seen_subcommand_from msg; and not __fish_seen_subcommand_from create-window; and not __fish_seen_subcommand_from config" -f -a "create-window" -d 'Create a new window in the same Alacritty process'
-complete -c alacritty -n "__fish_seen_subcommand_from help; and __fish_seen_subcommand_from msg; and not __fish_seen_subcommand_from create-window; and not __fish_seen_subcommand_from config" -f -a "config" -d 'Update the Alacritty configuration'
+# Print an optspec for argparse to handle cmd's options that are independent of any subcommand.
+function __fish_alacritty_global_optspecs
+ string join \n print-events ref-test embed= config-file= socket= q v working-directory= hold e/command= T/title= class= o/option= h/help V/version
+end
+
+function __fish_alacritty_needs_command
+ # Figure out if the current invocation already has a command.
+ set -l cmd (commandline -opc)
+ set -e cmd[1]
+ argparse -s (__fish_alacritty_global_optspecs) -- $cmd 2>/dev/null
+ or return
+ if set -q argv[1]
+ # Also print the command, so this can be used to figure out what it is.
+ echo $argv[1]
+ return 1
+ end
+ return 0
+end
+
+function __fish_alacritty_using_subcommand
+ set -l cmd (__fish_alacritty_needs_command)
+ test -z "$cmd"
+ and return 1
+ contains -- $cmd[1] $argv
+end
+
+complete -c alacritty -n "__fish_alacritty_needs_command" -l embed -d 'X11 window ID to embed Alacritty within (decimal or hexadecimal with "0x" prefix)' -r
+complete -c alacritty -n "__fish_alacritty_needs_command" -l config-file -d 'Specify alternative configuration file [default: $XDG_CONFIG_HOME/alacritty/alacritty.toml]' -r -F
+complete -c alacritty -n "__fish_alacritty_needs_command" -l socket -d 'Path for IPC socket creation' -r -F
+complete -c alacritty -n "__fish_alacritty_needs_command" -l working-directory -d 'Start the shell in the specified working directory' -r -F
+complete -c alacritty -n "__fish_alacritty_needs_command" -s e -l command -d 'Command and args to execute (must be last argument)' -r
+complete -c alacritty -n "__fish_alacritty_needs_command" -s T -l title -d 'Defines the window title [default: Alacritty]' -r
+complete -c alacritty -n "__fish_alacritty_needs_command" -l class -d 'Defines window class/app_id on X11/Wayland [default: Alacritty]' -r
+complete -c alacritty -n "__fish_alacritty_needs_command" -s o -l option -d 'Override configuration file options [example: \'cursor.style="Beam"\']' -r
+complete -c alacritty -n "__fish_alacritty_needs_command" -l print-events -d 'Print all events to STDOUT'
+complete -c alacritty -n "__fish_alacritty_needs_command" -l ref-test -d 'Generates ref test'
+complete -c alacritty -n "__fish_alacritty_needs_command" -s q -d 'Reduces the level of verbosity (the min level is -qq)'
+complete -c alacritty -n "__fish_alacritty_needs_command" -s v -d 'Increases the level of verbosity (the max level is -vvv)'
+complete -c alacritty -n "__fish_alacritty_needs_command" -l hold -d 'Remain open after child process exit'
+complete -c alacritty -n "__fish_alacritty_needs_command" -s h -l help -d 'Print help'
+complete -c alacritty -n "__fish_alacritty_needs_command" -s V -l version -d 'Print version'
+complete -c alacritty -n "__fish_alacritty_needs_command" -f -a "msg" -d 'Send a message to the Alacritty socket'
+complete -c alacritty -n "__fish_alacritty_needs_command" -f -a "migrate" -d 'Migrate the configuration file'
+complete -c alacritty -n "__fish_alacritty_needs_command" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and not __fish_seen_subcommand_from create-window config help" -s s -l socket -d 'IPC socket connection path override' -r -F
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and not __fish_seen_subcommand_from create-window config help" -s h -l help -d 'Print help'
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and not __fish_seen_subcommand_from create-window config help" -f -a "create-window" -d 'Create a new window in the same Alacritty process'
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and not __fish_seen_subcommand_from create-window config help" -f -a "config" -d 'Update the Alacritty configuration'
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and not __fish_seen_subcommand_from create-window config help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and __fish_seen_subcommand_from create-window" -l working-directory -d 'Start the shell in the specified working directory' -r -F
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and __fish_seen_subcommand_from create-window" -s e -l command -d 'Command and args to execute (must be last argument)' -r
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and __fish_seen_subcommand_from create-window" -s T -l title -d 'Defines the window title [default: Alacritty]' -r
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and __fish_seen_subcommand_from create-window" -l class -d 'Defines window class/app_id on X11/Wayland [default: Alacritty]' -r
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and __fish_seen_subcommand_from create-window" -s o -l option -d 'Override configuration file options [example: \'cursor.style="Beam"\']' -r
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and __fish_seen_subcommand_from create-window" -l hold -d 'Remain open after child process exit'
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and __fish_seen_subcommand_from create-window" -s h -l help -d 'Print help'
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and __fish_seen_subcommand_from config" -s w -l window-id -d 'Window ID for the new config' -r
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and __fish_seen_subcommand_from config" -s r -l reset -d 'Clear all runtime configuration changes'
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and __fish_seen_subcommand_from config" -s h -l help -d 'Print help (see more with \'--help\')'
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and __fish_seen_subcommand_from help" -f -a "create-window" -d 'Create a new window in the same Alacritty process'
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and __fish_seen_subcommand_from help" -f -a "config" -d 'Update the Alacritty configuration'
+complete -c alacritty -n "__fish_alacritty_using_subcommand msg; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
+complete -c alacritty -n "__fish_alacritty_using_subcommand migrate" -s c -l config-file -d 'Path to the configuration file' -r -F
+complete -c alacritty -n "__fish_alacritty_using_subcommand migrate" -s d -l dry-run -d 'Only output TOML config to STDOUT'
+complete -c alacritty -n "__fish_alacritty_using_subcommand migrate" -s i -l skip-imports -d 'Do not recurse over imports'
+complete -c alacritty -n "__fish_alacritty_using_subcommand migrate" -l skip-renames -d 'Do not move renamed fields to their new location'
+complete -c alacritty -n "__fish_alacritty_using_subcommand migrate" -s s -l silent -d 'Do not output to STDOUT'
+complete -c alacritty -n "__fish_alacritty_using_subcommand migrate" -s h -l help -d 'Print help'
+complete -c alacritty -n "__fish_alacritty_using_subcommand help; and not __fish_seen_subcommand_from msg migrate help" -f -a "msg" -d 'Send a message to the Alacritty socket'
+complete -c alacritty -n "__fish_alacritty_using_subcommand help; and not __fish_seen_subcommand_from msg migrate help" -f -a "migrate" -d 'Migrate the configuration file'
+complete -c alacritty -n "__fish_alacritty_using_subcommand help; and not __fish_seen_subcommand_from msg migrate help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
+complete -c alacritty -n "__fish_alacritty_using_subcommand help; and __fish_seen_subcommand_from msg" -f -a "create-window" -d 'Create a new window in the same Alacritty process'
+complete -c alacritty -n "__fish_alacritty_using_subcommand help; and __fish_seen_subcommand_from msg" -f -a "config" -d 'Update the Alacritty configuration'