diff options
author | Christian Duerr <contact@christianduerr.com> | 2023-11-08 07:03:24 +0100 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2023-11-11 20:33:06 +0100 |
commit | 2f097dac5c78a01bdb020c982a09867b3213a69b (patch) | |
tree | f751637a5d4eff5a151273b3bbc7c083d2ed8fc5 /extra/completions/_alacritty | |
parent | 683b5a2cb47579560ed272dc1a4818507dbd30c7 (diff) | |
download | alacritty-2f097dac5c78a01bdb020c982a09867b3213a69b.tar.gz alacritty-2f097dac5c78a01bdb020c982a09867b3213a69b.zip |
Add `--option` argument to `create-window`
This patch adds a new CLI parameter to the `create-window` subcommand,
matching the existing `--option` parameter when creating a new Alacritty
instance.
This parameter allows setting up the initial window configuration from
the CLI without having to call `alacritty msg config`, making sure that
all options are set appropriately right from the start.
Closes #6238.
Diffstat (limited to 'extra/completions/_alacritty')
-rw-r--r-- | extra/completions/_alacritty | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/extra/completions/_alacritty b/extra/completions/_alacritty index 6f21f450..a1739c4e 100644 --- a/extra/completions/_alacritty +++ b/extra/completions/_alacritty @@ -18,14 +18,14 @@ _alacritty() { '--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' \ -'*-o+[Override configuration file options \[example\: cursor.style=Beam\]]:OPTION: ' \ -'*--option=[Override configuration file options \[example\: cursor.style=Beam\]]:OPTION: ' \ '--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: ' \ '-T+[Defines the window title \[default\: Alacritty\]]:TITLE: ' \ '--title=[Defines the window title \[default\: Alacritty\]]:TITLE: ' \ '--class=[Defines window class/app_id on X11/Wayland \[default\: Alacritty\]]:general> | <general>,<instance: ' \ +'*-o+[Override configuration file options \[example\: '\''cursor.style="Beam"'\''\]]:OPTION: ' \ +'*--option=[Override configuration file options \[example\: '\''cursor.style="Beam"'\''\]]:OPTION: ' \ '--print-events[Print all events to stdout]' \ '--ref-test[Generates ref test]' \ '(-v)*-q[Reduces the level of verbosity (the min level is -qq)]' \ @@ -68,6 +68,8 @@ _arguments "${_arguments_options[@]}" \ '-T+[Defines the window title \[default\: Alacritty\]]:TITLE: ' \ '--title=[Defines the window title \[default\: Alacritty\]]:TITLE: ' \ '--class=[Defines window class/app_id on X11/Wayland \[default\: Alacritty\]]:general> | <general>,<instance: ' \ +'*-o+[Override configuration file options \[example\: '\''cursor.style="Beam"'\''\]]:OPTION: ' \ +'*--option=[Override configuration file options \[example\: '\''cursor.style="Beam"'\''\]]:OPTION: ' \ '--hold[Remain open after child process exit]' \ '-h[Print help]' \ '--help[Print help]' \ @@ -81,7 +83,7 @@ _arguments "${_arguments_options[@]}" \ '()--reset[Clear all runtime configuration changes]' \ '-h[Print help (see more with '\''--help'\'')]' \ '--help[Print help (see more with '\''--help'\'')]' \ -'*::options -- Configuration file options \[example\: cursor.style=Beam\]:' \ +'*::options -- Configuration file options \[example\: '\''cursor.style="Beam"'\''\]:' \ && ret=0 ;; (help) |