aboutsummaryrefslogtreecommitdiff
path: root/extra/completions/_alacritty
diff options
context:
space:
mode:
Diffstat (limited to 'extra/completions/_alacritty')
-rw-r--r--extra/completions/_alacritty122
1 files changed, 61 insertions, 61 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