aboutsummaryrefslogtreecommitdiff
path: root/extra/completions/_alacritty
diff options
context:
space:
mode:
Diffstat (limited to 'extra/completions/_alacritty')
-rw-r--r--extra/completions/_alacritty33
1 files changed, 32 insertions, 1 deletions
diff --git a/extra/completions/_alacritty b/extra/completions/_alacritty
index c4f586bb..6f21f450 100644
--- a/extra/completions/_alacritty
+++ b/extra/completions/_alacritty
@@ -16,7 +16,7 @@ _alacritty() {
local context curcontext="$curcontext" state line
_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.yml\]]:CONFIG_FILE:_files' \
+'--config-file=[Specify alternative configuration file \[default\: \$XDG_CONFIG_HOME/alacritty/alacritty.toml\]]:CONFIG_FILE:_files' \
'--socket=[Path for IPC socket creation]:SOCKET:_files' \
'*-o+[Override configuration file options \[example\: cursor.style=Beam\]]:OPTION: ' \
'*--option=[Override configuration file options \[example\: cursor.style=Beam\]]:OPTION: ' \
@@ -116,6 +116,21 @@ esac
;;
esac
;;
+(migrate)
+_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]' \
+'--dry-run[Only output TOML config to stdout]' \
+'-i[Do not recurse over imports]' \
+'--skip-imports[Do not recurse over imports]' \
+'--skip-renames[Do not move renamed fields to their new location]' \
+'-s[Do not output to STDOUT]' \
+'--silent[Do not output to STDOUT]' \
+'-h[Print help]' \
+'--help[Print help]' \
+&& ret=0
+;;
(help)
_arguments "${_arguments_options[@]}" \
":: :_alacritty__help_commands" \
@@ -152,6 +167,10 @@ _arguments "${_arguments_options[@]}" \
;;
esac
;;
+(migrate)
+_arguments "${_arguments_options[@]}" \
+&& ret=0
+;;
(help)
_arguments "${_arguments_options[@]}" \
&& ret=0
@@ -169,6 +188,7 @@ esac
_alacritty_commands() {
local commands; commands=(
'msg:Send a message to the Alacritty socket' \
+'migrate:Migrate the configuration file' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'alacritty commands' commands "$@"
@@ -207,6 +227,7 @@ _alacritty__msg__help__create-window_commands() {
_alacritty__help_commands() {
local commands; commands=(
'msg:Send a message to the Alacritty socket' \
+'migrate:Migrate the configuration file' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'alacritty help commands' commands "$@"
@@ -230,6 +251,16 @@ _alacritty__msg__help__help_commands() {
local commands; commands=()
_describe -t commands 'alacritty msg help help commands' commands "$@"
}
+(( $+functions[_alacritty__help__migrate_commands] )) ||
+_alacritty__help__migrate_commands() {
+ local commands; commands=()
+ _describe -t commands 'alacritty help migrate 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() {
local commands; commands=(